In View, i.e. the XAML, I have binded the SelectAll bool value to the Checkbox control
<CheckBox Grid.Row="5" Content="Select All" HorizontalAlignment="Left" Margin="0,5, 0, 0" IsChecked="{Binding Path=SelectAll, Mode=TwoWay}" Width="206"></CheckBox>
and fullfill the SelectAll as
public bool SelectAll
{
get { return this.Get<bool>("SelectAll"); }
set
{
this.Set<bool>("SelectAll", value);
if (this.SelectAllCommand.CanExecute(null))
this.SelectAllCommand.Execute(value);
}
}
Yes, it looks good, but I have an issue...
When all the checkboxes are selected manually, the selectall checkbox should be selected automatically... at that time, we don't want the SelectAllCommand command to be executed...
How can I do it..... I know maybe it is an easy job, but how to do it perfectly....
Thanks for giving me some advices in advance