예제 #1
0
        private static void IsImageVisiblePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            hBtnWImageText ido = d as hBtnWImageText;

            if (ido != null)
            {
                ido.IsImageVisible = (bool)e.NewValue;
            }
        }
예제 #2
0
        private static void CustomForeGroundPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            hBtnWImageText ido = d as hBtnWImageText;

            if (ido != null)
            {
                ido.CustomForeGround = e.NewValue as SolidColorBrush;
            }
        }
예제 #3
0
        private static void CustomContentPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            hBtnWImageText ido = d as hBtnWImageText;

            if (ido != null)
            {
                ido.CustomContent = (string)e.NewValue;
            }
        }
예제 #4
0
        private static void ButtonImagePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            hBtnWImageText ido = d as hBtnWImageText;

            if (ido != null)
            {
                ido.ButtonImage = (ImageSource)e.NewValue;
            }
        }