Creating a Custom View Mode that Supports a Template Selector(cloudstore.blogspot.com)

submitted by dereklakindereklakin(1565) 3 years, 11 months ago

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.

add a comment |category: |Views: 64

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story