Browse by Tags

Tagged Content List
  • Wiki Page: Custom Styling the Alternate Rows inside ListView/GridView

    To style the items inside ListView/GridView based on item index we will use StyleSelector to define custom styling for each item. To implement this, we will define the class derived from StyleSelector as shown below. Inside this class we are just returning the style which will apply...
  • Wiki Page: Building an App using the DataviewModel from external XML

    The title pretty much explains everything we will find in this article and solution to this question We will be using data from xml file to build our own data model and then finally displaying that to end user. ( Actual Question Image Link ) Basically this question answers three things...
  • Wiki Page: Nesting, ListView inside ListView DataTemplate (Or TreeView representation)

    This article builds a data model to represent the nesting relationship which can be displayed in a tree like structure inside nested ListViews. This tries to solve this MSDN problem and create a structure as shown below Data Model class Menu { public ObservableCollection<...
  • Wiki Page: Display Images in GridView/ListView using DataBinding

    This article shows how easy it is to display images in ItemsControl element using simple DataBinding. Answer posted to these MSDN questions ( 1 , 2 ) Let's take a look at this sample code for the implementation details: < GridView x:Name = "gridView" ItemsSource...
  • Wiki Page: WebView - Dynamic Html Page with Images (MVVM)

    This article provides support for WebView in Windows 8 to display local html file or html page created dynamically. Oftentimes developers are looking to display local html file but due to the WebView restrictions (for security reasons) are not able to achieve it. This also caters to following Code...
  • Wiki Page: Binding an item inside ItemsControl's DataTemplate to the property on Page DataContext

    Typically in all scenarios we bind the ItemControl's ItemsSource to the collection of Data Model item. Then we configure our DataTemplate Binding to the properties inside Data Model item. However, in this particular scenario MSDN questioner wanted to bind the one UIElement inside DataTemplate to...
Page 1 of 1 (6 items)
Can't find it? Write it!