What is the terminology for the extended automatic loading of a ListBox in windows phone 8 xaml.
So when you are scrolling and you get to near the bottom of the list, it automatically calls a function or Command or whatever that adds more data to the bottom of the list so you can continue to scroll.
I can't think of what to search for :S
I am using an MVVM style of architecture and have used button Command Bindings for everything, so I guess if there is a Viewmodel way of doing the automatic updating, that'd be swell!
This is virtualizing :)
Read about it at the following page, please
Related
I'm using Elysium for creation Metro-like GUI for Windows 7.
I want to create GUI for app with 3 columns with dynamic content with similar animation like its done in many mobile apps and some websites with Javascript ("infinite scrolling pages").
So you press refresh button and it adds few new feeds to each column with smooth animation.
I'm trying to move away from idea of using Javascript itself for rendering results but I pretty much don't see any other option.
What kind of controls should I use for that or/and how to implement such effect?
Update 1: Looks like its called Pile Board
Update 2: Currently looking into ObservableCollection and Elysium.Extras (DataGrid) combo.
Seems like there's also MahApps as alternative to Elysium with Pile control included.
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.
As I know there is no treeview control in Windows 8 store app, does anyone know an alternative solution?I want to display some parent child data with collapse and expend on click of the header, but this is not possible in GridView and ListView of Windows 8. Can any one help me for this ?
There is a TreeView control in WinRT XAML Toolkit that has been ported from the Silverlight Toolkit.
Tree Navigator control from Syncfusion WinRT Studio may help to achieve your requirement. It supports hierarchical data binding. It also has two different navigation modes. The control provides a unique interface that can expand a tree structure in-place without taking up more space on the screen.
http://www.syncfusion.com/products/winrt/controls
I am working on windows phone apps. When I was reading about improving the performance of an app, I came across this msdn blog which is concentrated on silver light performance for ListBox in windows phone. It suggests that we should not use User Controls in data template. (I have marked the text in the link in two areas. which i felt doubtful)
Now my question is can I create a list of user control objects and add to a ItemsControl say ListBox which is in the view.? Will the control's XAML be considered as a Resource and parse it every time ? (like it is told in the blog). How can I test that? I asked in the same blog a week ago but the question did not get published there.
I've used ListBox some times and in fact, its performance is poor. However, I use to create DataTemplateItem instead of UserControls since I have not needed UserControl.
About your questions: You can create a list of UserControls and add them to ListBox, however consider using DataTemplates instead. I guess that control's XAML is parsed every time (but not sure). To test it, just check this link.
cheers,
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