/// <summary> /// Default constructor /// </summary> public BackstageButton() { Backstage = new Backstage(); Binding binding = new Binding("Background"); binding.Source = this; Backstage.SetBinding(Backstage.BackgroundProperty, binding); AddLogicalChild(Backstage); }
/// <summary> /// Default constructor /// </summary> public BackstageButton() { AddHandler(RibbonControl.ClickEvent, new RoutedEventHandler(OnClick)); Backstage = new Backstage(); Binding binding = new Binding("Background"); binding.Source = this; Backstage.SetBinding(Backstage.BackgroundProperty, binding); AddLogicalChild(Backstage); }