Quantcast
Viewing all articles
Browse latest Browse all 18858

Switching between DataTemplates

Windows Explorer enables user to choose between different ways of listing files (Details, List, Icons...).

I defined a few datatemplates

<DataTemplate DataType="{x:Type local:FileData}">
//List of files - details</DataTemplate><DataTemplate DataType="{x:Type local:FileData}">
//List files as small icons</DataTemplate>
but I need direction how do I select one according to button press? Thanks!

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>