private static void IsActived_PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuItemUserControl menuItemUserControl = (MenuItemUserControl)d; menuItemUserControl.rectangle.Fill = (bool)e.NewValue ? Brushes.Firebrick : Brushes.LightGray; }
private static void Image_PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuItemUserControl menuItemUserControl = (MenuItemUserControl)d; menuItemUserControl.image.Source = (ImageSource)e.NewValue; }
private static void Title_PropertyChangedCallback(DependencyObject d, DependencyPropertyChangedEventArgs e) { MenuItemUserControl menuItemUserControl = (MenuItemUserControl)d; menuItemUserControl.textBlock.Text = (string)e.NewValue; }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: #line 15 "..\..\MainWindow.xaml" ((GeelyPTL.MainWindow)(target)).Closing += new System.ComponentModel.CancelEventHandler(this.Window_Closing); #line default #line hidden return; case 2: #line 27 "..\..\MainWindow.xaml" ((System.Windows.Controls.Grid)(target)).MouseLeftButtonDown += new System.Windows.Input.MouseButtonEventHandler(this.gridHeader_MouseLeftButtonDown); #line default #line hidden return; case 3: this.menuItemService = ((GeelyPTL.MenuItemUserControl)(target)); return; case 4: this.menuItemChannelList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 5: this.menuItemCartList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 6: this.menuItemMarketList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 7: this.menuItemWorkStationList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 8: this.menuItemLesTaskList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 9: this.menuItemPalletTaskList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 10: this.menuItemCartTaskList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 11: this.menuItemFindTaskList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 12: this.menuItemDistributeTaskList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 13: this.menuItemAssembleTaskList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 14: this.menuItemEmployeeList = ((GeelyPTL.MenuItemUserControl)(target)); return; case 15: this.serviceUserControl = ((GeelyPTL.UserControls.ServiceUserControl)(target)); return; case 16: this.channelsUserControl = ((GeelyPTL.UserControls.ChannelsUserControl)(target)); return; case 17: this.cartsUserControl = ((GeelyPTL.UserControls.CartsUserControl)(target)); return; case 18: this.marketUserControl = ((GeelyPTL.UserControls.MarketUserControl)(target)); return; case 19: this.workStationsUserControl = ((GeelyPTL.UserControls.WorkStationsUserControl)(target)); return; case 20: this.lesTasksUserControl = ((GeelyPTL.UserControls.LesTasksUserControl)(target)); return; case 21: this.palletTasksUserControl = ((GeelyPTL.UserControls.PalletTasksUserControl)(target)); return; case 22: this.cartTasksUserControl = ((GeelyPTL.UserControls.CartTasksUserControl)(target)); return; case 23: this.findTasksUserControl = ((GeelyPTL.UserControls.FindTasksUserControl)(target)); return; case 24: this.distributeTasksUserControl = ((GeelyPTL.UserControls.DistributeTasksUserControl)(target)); return; case 25: this.assembleTasksUserControl = ((GeelyPTL.UserControls.AssembleTasksUserControl)(target)); return; case 26: this.employeesUserControl = ((GeelyPTL.UserControls.EmployeesUserControl)(target)); return; } this._contentLoaded = true; }