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.
Related
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".
I have iOS application with UITabBarController that contains UINaviagtionController for each Tab, like on the picture below.
I also want to port my application to WindowsPhone (>=7.5).
My question is: Which UI components/services can I use to create the navigation flow like in my iOS app?
Update
About UITabController you can think like about tabs in windows
The hierarchy of controllers that painted on the picture above mean that each tab in UITabController will have own UINavigationController (in the WP terms this is NavigationService). So if you will use the navigation on one tab this will not affect to navigation on other tabs.
But as far as I know by default WP application have only one instance of NavigationService.
So actually my question is relevant to a question: Can WP application use more than one NavigationService?
Windows Phone uses slightly different UI concepts. Instead of using Tab control you should use either Panorama or Pivot control. The former is used whenever you want to display completely disparate elements on a single large page, the latter is for displaying multiple views of the same data. This means that Panorama is used for displaying multiple views of different data.
Whenever you navigate from one page to another using NavigationService, it will keep the current stack. It serves as a history for the hardware Back button (unlike software button in iOS).
This means that you hold only one sequence of previously open pages in your application that can be navigated backwards, there cannot be any "side" stacks since they make no sense.
So if you were to navigate from one pivot item to some other application page, you would use the one and only NavigationService. Therefore each pivot/panorama item uses the same stack as the rest of the application.
If some things are still unclear, feel free to ask here.
I've been searching on the web for a little while for a content control for Windows Phone 7 with multiple pages, where I would be able change content by changing the index, something like a PageControl or a TabControl, but without the tabs, but I had no luck.
The Idea is to give the user multiple views for the content, but I don't want to use the pivot since it will be inside a pivot item. It can't be scrollable.
I would give the user the view options, and the control would show the option he chose.
Does anyone know any kind of control that can do this kind of thing?
Thanks in advance.
You could use a UserControl and just switch the views on that single page. You would have to plumb your own implementation you want. But the controls should be extensible enough for it to be have your own custom implementation there on how it will work.
I would also suggest to go to this MSDN Documentation and check the inheritance of UserControl.
More specifically, to make it easier for you check Caliburn Micro to make it easy to switch content in a single page. Hope it helps!
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.