コード例 #1
0
        private static void OnAvatarPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MenuButton button = (d as MenuButton);

            button.menuHeaderImage.Source = new BitmapImage(button.HeaderImage);
        }
コード例 #2
0
        private static void OnSymbolPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MenuButton button = (d as MenuButton);

            button.menuSymbolImage.Symbol = button.Symbol;
        }
コード例 #3
0
        private static void OnSymbolVisibilityPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            MenuButton button = (d as MenuButton);

            button.menuSymbolImage.Visibility = button.SymbolIconVisibility;
        }