private static void OnAvatarPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuButton button = (d as MenuButton); button.menuHeaderImage.Source = new BitmapImage(button.HeaderImage); }
private static void OnSymbolPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuButton button = (d as MenuButton); button.menuSymbolImage.Symbol = button.Symbol; }
private static void OnSymbolVisibilityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuButton button = (d as MenuButton); button.menuSymbolImage.Visibility = button.SymbolIconVisibility; }