public static void IsVisiblePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { NewlyUnlockedConversionNotificationBtn mBtn = (NewlyUnlockedConversionNotificationBtn)d; bool isVisible = (bool)e.NewValue; if (isVisible) { mBtn.bounceStoryBoard.Begin(); } else { mBtn.bounceStoryBoard.Stop(); } }
public static void ConversionNamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { NewlyUnlockedConversionNotificationBtn mBtn = (NewlyUnlockedConversionNotificationBtn)d; mBtn.conversionNameTextBlock.Text = (string)e.NewValue; }