Error!
Success!

Creating a Custom View Mode that Supports a Template Selector

0
kicks

Creating a Custom View Mode that Supports a Template Selector  (Unpublished)

The controls that inherit from ItemsControl (such as ListBox, ListView, and so on) expose an ItemTemplateSelector property that you can use instead of the ItemTemplate property to specify a DataTemplateSelector. The DataTemplateSelector enables you to specify your own custom logic that determines which DataTemplate should be applied to each item. This article shows how to create a custom view mode for the ListView control that supports a DataTemplateSelector to enable dynamic selection of the DataTemplate for each item.


Kicked By:
Drop Kicked By: