Ejemplo n.º 1
0
        private static void OnBitmapImageOnClickPropertyChanged(DependencyObject dependencyObject,
                                                                DependencyPropertyChangedEventArgs e)
        {
            ImagesButton myUserControl = dependencyObject as ImagesButton;

            myUserControl.OnBitmapImageOnClickPropertyChanged(e);
        }
Ejemplo n.º 2
0
        private static void OnButtonTextPropertyChanged(DependencyObject dependencyObject,
                                                        DependencyPropertyChangedEventArgs e)
        {
            ImagesButton myUserControl = dependencyObject as ImagesButton;

            if (e.NewValue == null)
            {
                myUserControl.ButtonTextTextBlock.Text = string.Empty;
            }
            else
            {
                myUserControl.ButtonTextTextBlock.Text = e.NewValue.ToString();
            }
        }