'Change DataTemplate Child Dynamically
I have a ListView which has a column for checkboxes. When a checkbox is checked, I want to swap it out with a progress ring. Then, when the activity I want is completed, I can hide the progress ring and display the checked checkbox. Is this possible? A DataTemplate only seems to accept one child
<GridViewColumn x:Name="StatusHeader" Header="Status" Width="50">
<GridViewColumn.CellTemplate>
<DataTemplate>
<CheckBox Margin="5, 0" IsChecked="{Binding loaded}" Checked="CheckBox_Checked" Unchecked="CheckBox_Unchecked"/>
</DataTemplate>
</GridViewColumn.CellTemplate>
</GridViewColumn>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|

