Hi ,
I have a WPF MVVM application. i have a dialog box window which has checkbox in grid. When i check on the checkbox some functions happening. but again when i open the dialog box i want to show the checkbox checked.
XAML
- <DataGridTemplateColumn.CellTemplate>
- <DataTemplate>
- <pnx:PnxCheckBox
- Command="{Binding CheckedChangedCell,Mode=TwoWay,RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGrid}}}"
- HorizontalAlignment="Right"
- IsChecked="{Binding Path=IsChecked, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
- Margin="7,0,5,0"
- VerticalAlignment="Center" />
- </DataTemplate>
- </DataGridTemplateColumn.CellTemplate>
- </DataGridTemplateColumn>
This is my xaml. What i have to do in my view model.
Please help