In this example, the IsChecked property of the CheckBox control is bound to the IsAdvancedVisible property in the view model. The Visibility property of the Grid control is also bound to the same property using a BooleanToVisibilityConverter, which will show or hide the advanced options controls based on the value of the IsAdvancedVisible property in the view model. These examples use the System.Windows.Controls package library.