private static void ImagePropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e) { TaskPanelBlock c = obj as TaskPanelBlock; Brush v = (Brush)e.NewValue; c.image.Fill = v; }
private static void NotifColorPropertyChange(DependencyObject obj, DependencyPropertyChangedEventArgs e) { TaskPanelBlock c = obj as TaskPanelBlock; Color v = (Color)e.NewValue; c.notif.Fill = new SolidColorBrush(v); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 9 "..\..\..\Forms\MainWindow.xaml" ((GameHaker.MainWindow)(target)).MouseMove += new System.Windows.Input.MouseEventHandler(this.Window_MouseMove); #line default #line hidden #line 9 "..\..\..\Forms\MainWindow.xaml" ((GameHaker.MainWindow)(target)).Activated += new System.EventHandler(this.Window_Activated); #line default #line hidden #line 9 "..\..\..\Forms\MainWindow.xaml" ((GameHaker.MainWindow)(target)).Deactivated += new System.EventHandler(this.Window_Deactivated); #line default #line hidden #line 9 "..\..\..\Forms\MainWindow.xaml" ((GameHaker.MainWindow)(target)).Loaded += new System.Windows.RoutedEventHandler(this.Window_Loaded); #line default #line hidden return; case 2: this.OnLoaded1_BeginStoryboard = ((System.Windows.Media.Animation.BeginStoryboard)(target)); return; case 3: this.grid = ((System.Windows.Controls.Grid)(target)); return; case 4: this.image = ((System.Windows.Controls.Image)(target)); return; case 5: this.test = ((System.Windows.Controls.Button)(target)); #line 77 "..\..\..\Forms\MainWindow.xaml" this.test.MouseMove += new System.Windows.Input.MouseEventHandler(this.Button_MouseMove); #line default #line hidden #line 77 "..\..\..\Forms\MainWindow.xaml" this.test.MouseUp += new System.Windows.Input.MouseButtonEventHandler(this.Button_MouseUp); #line default #line hidden #line 77 "..\..\..\Forms\MainWindow.xaml" this.test.Click += new System.Windows.RoutedEventHandler(this.test_Click); #line default #line hidden return; case 6: this.MainPanel = ((System.Windows.Controls.Grid)(target)); return; case 7: this.TaskPanel = ((System.Windows.Controls.Grid)(target)); return; case 8: this.TaskPanelContent = ((System.Windows.Controls.StackPanel)(target)); return; case 9: this.testblock_Copy = ((GameHaker.TaskPanelBlock)(target)); return; case 10: this.testblock = ((GameHaker.TaskPanelBlock)(target)); return; case 11: this.testblock_Copy1 = ((GameHaker.TaskPanelBlock)(target)); return; case 12: this.MenuPysk = ((GameHaker.TaskPanelBlock)(target)); return; } this._contentLoaded = true; }