Example #1
0
        private static void TitlePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BoardGamesHeader myControl = d as BoardGamesHeader;
            string           title     = (string)e.NewValue;

            myControl.TitleButtonTextBlock.Text = title;
        }
Example #2
0
        private static void LoadingPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            BoardGamesHeader myControl = d as BoardGamesHeader;
            bool             loading   = (bool)e.NewValue;

            if (loading)
            {
                myControl.Spinner.SpinningAnimation.Begin();
                myControl.Spinner.Visibility = Visibility.Visible;
            }
            else
            {
                myControl.Spinner.Visibility = Visibility.Collapsed;
                myControl.Spinner.SpinningAnimation.Stop();
            }
        }