public DropDownButton() { // Bind the ToogleButton.IsChecked property to the drop-down's IsOpen property Binding binding = new Binding("DropDown.IsOpen"); binding.Source = this; SetBinding(IsCheckedProperty, binding); }