Inheritance: System.Windows.Controls.Control
        private static void OnRChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnRChanged((byte)e.OldValue, (byte)e.NewValue);
            }
        }
        private static void OnHexadecimalStringChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            ColorCanvas colorCanvas = o as ColorCanvas;

            if (colorCanvas != null)
            {
                colorCanvas.OnHexadecimalStringChanged((string)e.OldValue, (string)e.NewValue);
            }
        }
Exemplo n.º 3
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.StyleAllGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.VideoBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 3:
     this.StyleMenuBackground = ((System.Windows.Controls.Grid)(target));
     return;
     case 4:
     this.PickerMenuBackground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 5:
     this.CanvasMenuBackground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 14 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasMenuBackground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetMenuBackground);
     
     #line default
     #line hidden
     return;
     case 6:
     this.TitleMenuBackground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 7:
     this.ColorDisplayMenuBackground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 8:
     this.MenuBackgroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 9:
     this.OkButton = ((System.Windows.Controls.Button)(target));
     
     #line 24 "..\..\..\ChangeStyleWin.xaml"
     this.OkButton.Click += new System.Windows.RoutedEventHandler(this.OkButton_Click);
     
     #line default
     #line hidden
     return;
     case 10:
     this.CancelButton = ((System.Windows.Controls.Button)(target));
     
     #line 25 "..\..\..\ChangeStyleWin.xaml"
     this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);
     
     #line default
     #line hidden
     return;
     }
     this._contentLoaded = true;
 }
Exemplo n.º 4
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
     switch (connectionId)
     {
     case 1:
     this.StyleAllGrid = ((System.Windows.Controls.Grid)(target));
     return;
     case 2:
     this.VideoBorder = ((System.Windows.Controls.Border)(target));
     return;
     case 3:
     this.OkButton = ((System.Windows.Controls.Button)(target));
     
     #line 12 "..\..\..\ChangeStyleWin.xaml"
     this.OkButton.Click += new System.Windows.RoutedEventHandler(this.OkButton_Click);
     
     #line default
     #line hidden
     return;
     case 4:
     this.CancelButton = ((System.Windows.Controls.Button)(target));
     
     #line 13 "..\..\..\ChangeStyleWin.xaml"
     this.CancelButton.Click += new System.Windows.RoutedEventHandler(this.CancelButton_Click);
     
     #line default
     #line hidden
     return;
     case 5:
     this.StyleMenuBackground = ((System.Windows.Controls.Grid)(target));
     return;
     case 6:
     this.PickerMenuBackground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 7:
     this.CanvasMenuBackground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 16 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasMenuBackground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetMenuBackground);
     
     #line default
     #line hidden
     return;
     case 8:
     this.TitleMenuBackground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 9:
     this.ColorDisplayMenuBackground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 10:
     this.MenuBackgroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 11:
     this.StyleMenuForeground = ((System.Windows.Controls.Grid)(target));
     return;
     case 12:
     this.PickerMenuForeground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 13:
     this.CanvasMenuForeground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 27 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasMenuForeground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetMenuForeground);
     
     #line default
     #line hidden
     return;
     case 14:
     this.TitleMenuForeground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 15:
     this.ColorDisplayMenuForeground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 16:
     this.MenuForegroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 17:
     this.StylePannelBackground = ((System.Windows.Controls.Grid)(target));
     return;
     case 18:
     this.PickerPannelBackground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 19:
     this.CanvasPannelBackground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 38 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasPannelBackground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetPannelBackground);
     
     #line default
     #line hidden
     return;
     case 20:
     this.TitlePannelBackground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 21:
     this.ColorDisplayPannelBackground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 22:
     this.PannelBackgroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 23:
     this.StylePannelForeground = ((System.Windows.Controls.Grid)(target));
     return;
     case 24:
     this.PickerPannelForeground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 25:
     this.CanvasPannelForeground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 49 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasPannelForeground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetPannelForeground);
     
     #line default
     #line hidden
     return;
     case 26:
     this.TitlePannelForeground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 27:
     this.ColorDisplayPannelForeground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 28:
     this.PannelForegroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 29:
     this.StyleLibraryBackground = ((System.Windows.Controls.Grid)(target));
     return;
     case 30:
     this.PickerLibraryBackground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 31:
     this.CanvasLibraryBackground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 60 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasLibraryBackground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetLibraryBackground);
     
     #line default
     #line hidden
     return;
     case 32:
     this.TitleLibraryBackground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 33:
     this.ColorDisplayLibraryBackground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 34:
     this.LibraryBackgroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     case 35:
     this.StyleLibraryForeground = ((System.Windows.Controls.Grid)(target));
     return;
     case 36:
     this.PickerLibraryForeground = ((System.Windows.Controls.ComboBox)(target));
     return;
     case 37:
     this.CanvasLibraryForeground = ((Microsoft.Windows.Controls.ColorCanvas)(target));
     
     #line 71 "..\..\..\ChangeStyleWin.xaml"
     this.CanvasLibraryForeground.SelectedColorChanged += new System.Windows.RoutedPropertyChangedEventHandler<System.Windows.Media.Color>(this.SetLibraryForeground);
     
     #line default
     #line hidden
     return;
     case 38:
     this.TitleLibraryForeground = ((System.Windows.Controls.TextBlock)(target));
     return;
     case 39:
     this.ColorDisplayLibraryForeground = ((System.Windows.Shapes.Rectangle)(target));
     return;
     case 40:
     this.LibraryForegroundRect = ((System.Windows.Media.SolidColorBrush)(target));
     return;
     }
     this._contentLoaded = true;
 }