Exemple #1
0
        public static void DrawModeStyleChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            ImageEditTool   tool = (ImageEditTool)d;
            RoutedEventArgs args = new RoutedEventArgs(ImageEditTool.DrawModeStyleChangedEvent, e.NewValue);

            tool.RaiseEvent(args);
        }
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.window = ((LoveScreen.Windows.ScreenSelectWindow)(target));

            #line 14 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.window.MouseMove += new System.Windows.Input.MouseEventHandler(this.window_MouseMove);

            #line default
            #line hidden

            #line 15 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.window.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.window_MouseUp);

            #line default
            #line hidden
                return;

            case 2:
                this.BackgroundImg = ((System.Windows.Controls.Image)(target));
                return;

            case 3:
                this.inkCanvas = ((LoveScreen.Controls.ExtendedInkCanvas)(target));

            #line 32 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.inkCanvas.PreviewMouseDown += new System.Windows.Input.MouseButtonEventHandler(this.inkCanvas_PreviewMouseDown);

            #line default
            #line hidden
                return;

            case 4:
                this.outterFrame = ((System.Windows.Shapes.Path)(target));

            #line 39 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.outterFrame.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.outterFrame_MouseDown);

            #line default
            #line hidden

            #line 39 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.outterFrame.MouseMove += new System.Windows.Input.MouseEventHandler(this.outterFrame_MouseMove);

            #line default
            #line hidden
                return;

            case 5:
                this.innerFrame = ((System.Windows.Shapes.Path)(target));

            #line 71 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.innerFrame.MouseDown += new System.Windows.Input.MouseButtonEventHandler(this.innerFrame_MouseDown);

            #line default
            #line hidden

            #line 71 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.innerFrame.MouseMove += new System.Windows.Input.MouseEventHandler(this.innerFrame_MouseMove);

            #line default
            #line hidden

            #line 71 "..\..\..\Windows\ScreenSelectWindow.xaml"
                this.innerFrame.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.innerFrame_MouseUp);

            #line default
            #line hidden
                return;

            case 6:
                this.imageEditTool = ((LoveScreen.Controls.ImageEditTool)(target));
                return;

            case 7:
                this.HelpCanvas = ((System.Windows.Controls.Canvas)(target));
                return;
            }
            this._contentLoaded = true;
        }