private static void ObjPropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MenuButtonsBackgroundBlur c = obj as MenuButtonsBackgroundBlur;
            Visual v = (Visual)e.NewValue;

            c.Obj = v;
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.userControl = ((GameHaker.MenuButtonsBackgroundBlur)(target));

            #line 8 "..\..\..\..\Resource\control\MenuButtonsBackgroundBlur.xaml"
                this.userControl.LayoutUpdated += new System.EventHandler(this.userControl_LayoutUpdated);

            #line default
            #line hidden

            #line 8 "..\..\..\..\Resource\control\MenuButtonsBackgroundBlur.xaml"
                this.userControl.TargetUpdated += new System.EventHandler <System.Windows.Data.DataTransferEventArgs>(this.userControl_TargetUpdated);

            #line default
            #line hidden
                return;

            case 2:
                this.OnMouseEnter1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 3:
                this.OnMouseLeave1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 4:
                this.OnPreviewMouseLeftButtonDown1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 5:
                this.OnPreviewMouseLeftButtonDown1_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 6:
                this.blurB = ((System.Windows.Controls.ScrollViewer)(target));
                return;

            case 7:
                this.blur = ((System.Windows.Shapes.Rectangle)(target));

            #line 109 "..\..\..\..\Resource\control\MenuButtonsBackgroundBlur.xaml"
                this.blur.Loaded += new System.Windows.RoutedEventHandler(this.rectangle1_Loaded);

            #line default
            #line hidden
                return;

            case 8:
                this.rectangle = ((System.Windows.Shapes.Rectangle)(target));
                return;

            case 9:
                this.label = ((System.Windows.Controls.Label)(target));
                return;
            }
            this._contentLoaded = true;
        }
        private static void TextColorPropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MenuButtonsBackgroundBlur c = obj as MenuButtonsBackgroundBlur;
            Color v = (Color)e.NewValue;

            c.label.Foreground = new SolidColorBrush(v);
            c.TextColor        = v;
        }
        private static void FontSizePropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MenuButtonsBackgroundBlur c = obj as MenuButtonsBackgroundBlur;
            int v = (int)e.NewValue;

            c.label.FontSize = v;
            c.FontSize       = v;
        }
        private static void TextPropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MenuButtonsBackgroundBlur c = obj as MenuButtonsBackgroundBlur;
            string v = (string)e.NewValue;

            c.label.Content = v;
            c.Text          = v;
        }
Esempio n. 6
0
        private void MenuButtonsBackgroundBlur_Loaded(object sender, RoutedEventArgs e)
        {
            MenuButtonsBackgroundBlur s = sender as MenuButtonsBackgroundBlur;

            listBut.Add(s);
            s.setBlurOptions(grid4, 30, this);
            s.OnBlur();
        }
        private static void BlurOnPropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e)
        {
            MenuButtonsBackgroundBlur c = obj as MenuButtonsBackgroundBlur;
            bool v = (bool)e.NewValue;

            c.BlurOn = v;
            //c.setBlurOptions(c.Obj, 30, c.Window);
            if (v)
            {
                c.OnBlur();
            }
            else
            {
                c.OffBlur();
            }
        }
Esempio n. 8
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((GameHaker.Main)(target));

            #line 9 "..\..\Main.xaml"
                this.window.KeyDown += new System.Windows.Input.KeyEventHandler(this.window_KeyDown);

            #line default
            #line hidden
                return;

            case 2:
                this.OnLoaded4_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 3:
                this.OnMouseEnter1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 4:
                this.startButInfoShow_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 5:
                this.OnMouseEnter1_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 6:
                this.OnMouseEnter1_BeginStoryboard2 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 7:
                this.settingsButInfoShow_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 8:
                this.OnMouseLeave1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 9:
                this.settingsButInfoHide_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 10:
                this.OnMouseEnter1_BeginStoryboard3 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 11:
                this.startButInfoHide_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 12:
                this.OnMouseLeave1_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 13:
                this.OnMouseEnter1_BeginStoryboard4 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 14:
                this.OnMouseEnter1_BeginStoryboard5 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 15:
                this.OnMouseLeave1_BeginStoryboard2 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 16:
                this.OnMouseLeave1_BeginStoryboard3 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 17:
                this.OnMouseEnter1_BeginStoryboard6 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 18:
                this.settingsButInfoShow_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 19:
                this.settingsButInfoHide_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 20:
                this.OnMouseLeave1_BeginStoryboard4 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 21:
                this.settingsButInfoHide_BeginStoryboard2 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 22:
                this.OnMouseEnter1_BeginStoryboard7 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 23:
                this.closeButInfoHide_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 24:
                this.OnMouseLeave1_BeginStoryboard5 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 25:
                this.OnMouseEnter1_BeginStoryboard8 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 26:
                this.closeButInfoShow_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 27:
                this.OnMouseLeave1_BeginStoryboard6 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 28:
                this.closeButInfoHide_BeginStoryboard1 = ((System.Windows.Media.Animation.BeginStoryboard)(target));
                return;

            case 29:
                this.MainGrid = ((System.Windows.Controls.Grid)(target));
                return;

            case 30:
                this.MainPanel = ((System.Windows.Controls.Grid)(target));
                return;

            case 31:
                this._Background = ((System.Windows.Controls.Viewbox)(target));
                return;

            case 32:
                this.s = ((Microsoft.Expression.Interactivity.Media.ControlStoryboardAction)(target));
                return;

            case 33:
                this.grid5 = ((System.Windows.Controls.Grid)(target));
                return;

            case 34:
                this.grid = ((System.Windows.Controls.Grid)(target));
                return;

            case 35:
                this.border1 = ((System.Windows.Controls.Border)(target));
                return;

            case 36:
                this.grid1 = ((System.Windows.Controls.Grid)(target));
                return;

            case 37:
                this.border2 = ((System.Windows.Controls.Border)(target));
                return;

            case 38:
                this.border3 = ((System.Windows.Controls.Border)(target));
                return;

            case 39:
                this.border = ((System.Windows.Controls.Border)(target));
                return;

            case 40:
                this.grid4 = ((System.Windows.Controls.Grid)(target));
                return;

            case 41:
                this.mediaElement = ((System.Windows.Controls.MediaElement)(target));

            #line 581 "..\..\Main.xaml"
                this.mediaElement.Loaded += new System.Windows.RoutedEventHandler(this.MediaElement_Loaded);

            #line default
            #line hidden

            #line 581 "..\..\Main.xaml"
                this.mediaElement.MediaEnded += new System.Windows.RoutedEventHandler(this.MediaElement_MediaEnded);

            #line default
            #line hidden
                return;

            case 42:
                this.grid2 = ((System.Windows.Controls.Grid)(target));
                return;

            case 43:
                this._Foreground = ((System.Windows.Controls.Grid)(target));
                return;

            case 44:
                this.but = ((System.Windows.Controls.Button)(target));

            #line 597 "..\..\Main.xaml"
                this.but.Click += new System.Windows.RoutedEventHandler(this.Button_Click);

            #line default
            #line hidden
                return;

            case 45:
                this.stackPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 46:
                this.startBut = ((GameHaker.MenuButtonsBackgroundBlur)(target));
                return;

            case 47:
                this.settingsBut = ((GameHaker.MenuButtonsBackgroundBlur)(target));
                return;

            case 48:
                this.exitBut = ((GameHaker.MenuButtonsBackgroundBlur)(target));
                return;

            case 49:
                this.startButInfo = ((System.Windows.Controls.ScrollViewer)(target));

            #line 621 "..\..\Main.xaml"
                this.startButInfo.Loaded += new System.Windows.RoutedEventHandler(this.loadButInfo);

            #line default
            #line hidden
                return;

            case 50:
                this.settingsButInfo = ((System.Windows.Controls.ScrollViewer)(target));

            #line 641 "..\..\Main.xaml"
                this.settingsButInfo.Loaded += new System.Windows.RoutedEventHandler(this.loadButInfo);

            #line default
            #line hidden
                return;

            case 51:
                this.settingsButExit = ((System.Windows.Controls.ScrollViewer)(target));

            #line 662 "..\..\Main.xaml"
                this.settingsButExit.Loaded += new System.Windows.RoutedEventHandler(this.loadButInfo);

            #line default
            #line hidden
                return;

            case 52:
                this.Dialog = ((System.Windows.Controls.Grid)(target));

            #line 683 "..\..\Main.xaml"
                this.Dialog.Loaded += new System.Windows.RoutedEventHandler(this.loadDialog);

            #line default
            #line hidden
                return;

            case 53:
                this.ShowDialogControl = ((Microsoft.Expression.Interactivity.Media.ControlStoryboardAction)(target));
                return;

            case 54:
                this.HideDialogControl = ((Microsoft.Expression.Interactivity.Media.ControlStoryboardAction)(target));
                return;

            case 55:
                this.border5 = ((System.Windows.Controls.Border)(target));
                return;

            case 56:
                this.TitleD = ((System.Windows.Controls.Label)(target));
                return;

            case 57:
                this.Message = ((System.Windows.Controls.TextBlock)(target));
                return;

            case 58:
                this.border4 = ((System.Windows.Controls.Border)(target));
                return;
            }
            this._contentLoaded = true;
        }