private static void OnBitmapImageOnClickPropertyChanged(DependencyObject dependencyObject, DependencyPropertyChangedEventArgs e) { ImagesButton myUserControl = dependencyObject as ImagesButton; myUserControl.OnBitmapImageOnClickPropertyChanged(e); }
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(); } }