How do I get the explorer theme in a WPF ListView?
I know that one answer is the GridView, but that is like the Details view in Windows Explorer.
I need the List, Tiles and Icons view themed like the Explorer.
How do I get that?
The Windows API Code Pack has an Explorer browser control, which has exactly the same appearance as the Windows Explorer (of course I'm assuming you want to display files, not something else...)
Anyway, if you want to do it yourself, you could create several custom views in addition to the GridView. This way you could just change the View property of the ListView to switch between list, tiles, icons and details. See this MSDN article for details on how to create a custom view.
Related
I have developed a Windows 10 app and I have List View with ListViewItems, when user clicks on the item, I am navigating it to new page in which details are shown for that ListViewItems. Now, my app needs to be used for desktop app also, so how can I combine these two views into one similar as Split View (left side item List and right side its data). Example Skype Preview app, in that when device is in landscape mode, then it shows, left side contacts list and right side chat details. I want to achieve same in my app. Is there any easy way to achieve this requirement or I need to create new UI for this?
You can refer to the official Master/detail sample. When on PC, it uses ContentPresenter and bind its content to the selected item of ListView. And when on Mobile, it uses navigation to navigate to the detail page and together pass the selected item as parameter to the detail page.
Is there any easy way to achieve this requirement or I need to create new UI for this?
I think it is needed to modify your layout, and you can use VisualStateManager to make your layout adjust to the window's size.
I have a windows 8 application that has both list views and grid views. I see the following behavior when multi-selecting items on touch screens:
Grid View: Swipe down on touch screen for selecting items
List view: Swipe left or right for selecting items
Is this the standard behavior? I could not find any documentation on this.
This is for a Windows 8 Store App.
You didn't say whether you were writing WPF or Windows Store Apps, but as always, MSDN is the place to look for documentation either way. For WPF, you have:
ListView Class
GridView Class
And for Windows Store Apps, you have:
ListView Class
GridView Class
If you can't find the information that you need there, then I imagine the next best thing would be to create a simple application without setting any extra properties on your controls and then just try swiping them and then that will be the default behaviour.
I would like to make a Facebook like app which has a dropdown list when clicked on the toolbar button, the view then will have a table view and user can choose one of them then change the view of the MainViewController. So far, I've just added the toolbar items but yet not knowing how to implement the bit that draws a new viewcontroller, please help!
That is not a built-in control in iOS (for iPhone). There is the the popover control for iPad (see here), but that is only for the iPad.
I did a quick search and found FPPopover, but I have not used it before. I'd start there, otherwise what you're looking for is an "implementation of popover control for iPhone".
How to place search button in DataGridView cell in Windows Application like font selecting in control property window in Visual Studio 2010
This may not be a direct answer to your question but you might want to look at Object List View
http://objectlistview.sourceforge.net/cs/index.html
It actually wraps a ListView but has a lot of capabilities including reading data from a database as I recall. This provides for in-cell editors. For standard things like colors it has a built in cell editor. If that does not work then you can roll your own.
I am an experienced coder who is trying to learn C# and WPF. Now, I am a bit of a stickler for detail, and I want to make sure my applications blend in with the rest of the user interface. However, I cannot seem to get this done using a ListView. My setup is simple - add a ListView to my window, bind to an ObservableCollection of my choice, and run the application.
The result is that the items pop up just fine (be it without meaningful contents). However, the selection rectangle on a ListView is always the dark blue that throws me back to the pre-XP days as opposed to the neater themed selection you have using the default Windows 7 visual style. To see that kind of selection in action, just select a file in explorer, or for another example look in the Programs and Features in the Control Panel. That looks nice and slick.
How can I get WPF to properly theme my ListView depending on my user settings? I don't want to reinvent the entire selection code and add tons of styling and doodahs like that - I want a plain Windows application that looks okay. The button works fine, textboxes work fine, comboboxes look fine, etc. It's just the ListView that looks totally crap.
Edit: I have no problems using another (very, very preferably not a thirdparty) control if required, but I do want a list of items that looks native and I approach a layout similar to the Tiles option in Explorer for each selected item (icon, desc, extra line of info). Vertical scrolling only is what I need.
If you use a ListView with ListView.View set to a GridView then you get a pretty similar look as Windows 7 explorer. (Atleast in my opinion, or is this the look you're talking about?). It also follows the active theme
Example 1. ListView with GridView to the right. Selection active
Example 2. ListView with GridView to the right. Selection inactive
Example 3. Using High Contrast Theme #2