public static void OnActionTextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { GameActionButton control = (GameActionButton)sender; control.actionLabel.Content = e.NewValue.ToString(); }
public static void OnImageChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { GameActionButton control = (GameActionButton)sender; control.image.Source = (ImageSource)e.NewValue; }