I want to use XAML for this with as little code-behind as possible. I have a DataForm with a custom Edit Template that looks like this:
[ X ] Checkbox 1
[ Control Panel ]
I want to display a set of controls below the “Checkbox 1” control (where the Control Panel is) IF Checkbox 1 IS checked, and if it’s unchecked I want to display a different set of controls.
I am using Silverlight 4 (soon to use SL 5). Is there a Silverlight control holder that lets me “switch” which active panel is visible by setting an “ActivePanel” ID or something?
Thanks
If you are familiar with MVVM you can just bind Visibility of your Grids to the same property that
CheckBox.IsCheckedis Binded to (of course you must use right Converters).