Following is my xaml:
<CheckBox Name="CheckBoxNoFindings" Content="No Findings" Command="{Binding DisableRteCommand}" CommandParameter="{Binding Path=Content}" Grid.Row="1" Grid.Column="1" Margin="2,5,0,3" />
I want to pass both IsChecked
and Content
property values to command parameter and access those from the VM.
VM Code:
private void DisableRte(object args)
{
if (null != args)
{
string rteName = args.ToString();
}
}
Actual requirement is, on check chekbox, a textbox should be disabled and content of checkbox should be applied into text of texbox. And opposite side , on uncheck checkbox textbox should be enabled and text should be empty.
Any Solution to this scenario?