Default style fore Null Value is grey check in XamCheckEditor. How can I change it to show null value as unchecked(false value)?
When XamCheckEditor value is True and IsReadOnly=True, it appears exactly the same way as Null Value(grey check), which is very confusing. How can I change it to Grey background with Black Check instead?
Hello Jane Xue,
Can you please provide a project which reproduces this behaviour? Because I'm not sure what you are asking for.
Regards,
Anastas
Just use the following example. You can see the second and third checkbox looks exactly the same. Although the second is really checked, and the third is null.
I want to show checkbox as unchecked when isChecked = null to make difference.
<Window x:Class="XamCheckEditor.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525" xmlns:igEditors="http://infragistics.com/Editors"> <Grid> <StackPanel> <igEditors:XamCheckEditor VerticalAlignment="Top" IsChecked="{x:Null}" /> <igEditors:XamCheckEditor VerticalAlignment="Top" IsReadOnly="True" IsChecked="True"/> <igEditors:XamCheckEditor VerticalAlignment="Top" IsReadOnly="True" IsChecked="{x:Null}"/> </StackPanel> </Grid></Window>