Exemple #1
0
        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();
            }
        }
Exemple #2
0
        public static void ConversionNamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            NewlyUnlockedConversionNotificationBtn mBtn = (NewlyUnlockedConversionNotificationBtn)d;

            mBtn.conversionNameTextBlock.Text = (string)e.NewValue;
        }