Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Switching between DataTemplates

$
0
0

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