@dubem: Without knowing the details of your solution, my guess is that you would actually want to keep all of your items in a "AllItems" collection in your ViewModel and bind your ListView or GridView to a "SearchResultsItems" for the ItemsSource. You could then add or remove the items from that second ObservableCollection in your ViewModel rather than try to do the add-remove within the control.
Windows Phone technical evangelist, blogger, author, app developer, information visualist... no, um, visualizer? Visualizationer? I make purty charts.
Jun 06, 2014 at 8:31 AM
Jun 06, 2014 at 8:26 AM
What I normally do for design-time visuals is create a set of static data that I plan to use at design time and use the "d" designation. Example:
First add the d xml namespace:
Then set d to be ignored on runtime:
Then set your design time DataContext in the XAML with the d prefix
With that, you can use a simple list of lists for design purposes and you won't have to use the CollectionViewSource.
What kinds demos would you have preferred to see? Where did you feel like we missed the mark?
Microsoft has hundreds of demos available for learning Windows Phone 8.1 and if these didn't help you with what you're looking for, maybe I can point you toward some that will help.
All sample code for these projects is located here.
Look for the file labeled "Session 12 Demos"
We don't do automated name localization due to the fact that naming is highly brand centric. However, if the app name needs to be localized, you can put the name in the application resources and run it through the Multilingual App Toolkit and use the localized results to reserve those additional names.
We have a great video on the Multilingual App Toolkit on Inside Windows Phone http://channel9.msdn.com/Shows/Inside+Windows+Phone/IWP65-Localization-Made-Easy-with-Multilingual-App-Toolkit
May 10, 2014 at 10:29 AM
It's a little roundabout, but you can use the ItemsPanel to find the index of first visible item in the list. From there you can get the container for that item and from that container you can get the item. You can use that item to scroll to the correct position.
var isp = (ItemsStackPanel)SampleListView.ItemsPanelRoot; int firstVisibleItem = isp.FirstVisibleIndex; var container = SampleListView.ContainerFromIndex(firstVisibleItem); var item = (MyObject)SampleListView.ItemFromContainer(container); SampleListView.ScrollIntoView(item);
@JimBane: For SQLite and Windows Phone 8, I can make two suggestions. If you're more of a blog post type of guy, check out Andy Wigley's SQLite for Windows 8 and Windows Phone 8
Also helpful is Andy's TechEd talk on SQLite and Windows Phone (I know it says "LOB apps", but the lessons translate pretty well to all kinds of apps that need SQLite.
We're moving into a new topic this next week, but you can learn more about pictures Auto Upload here: