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: 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: The Equivalent to AutoGenerateColumns for a ListView/GridView

    In WPF there is no built-in way to make a ListView display generic content. The DataGrid has this ability but is probably too much for just a display. To this end I have created an AttachedProperty that will allow the user to use a ListView with that ability. To use this AttachedProperty simply...
  • Wiki Page: Finding Element in ItemsControl DataTemplate (ListView/GridView/FlipView) - Window Store Apps

    This article will cover how to find an element inside DataTemplate for ItemsControl (including but not limited to ListView, GridView and FlipView) at particular index . It provides the boilerplate code in response to MSDN questions of how to find the element inside GridView/ListView/FlipView DataTemplate...
Page 1 of 1 (5 items)
Can't find it? Write it!