public void AddSettingsToContainer()
 {
     settingsUserControl = new SettingsUserControl(mazeSettings);
     container.Children.Add(settingsUserControl);
     Grid.SetColumn(settingsUserControl, 1);
     Grid.SetRow(settingsUserControl, 2);
     mazeUserControl.GetBlurEffect(false);
 }
Exemple #2
0
        public OpacityFade(SettingsUserControl settingsUserControl)
        {
            storyboard      = new Storyboard();
            doubleAnimation = new DoubleAnimation
            {
                Duration = new Duration(TimeSpan.FromSeconds(1))
            };

            storyboard.Children.Add(doubleAnimation);
            Storyboard.SetTargetProperty(doubleAnimation, new PropertyPath(UserControl.OpacityProperty));
            Storyboard.SetTarget(doubleAnimation, settingsUserControl);
        }