private void _ViewStyleset_C_UserLook1(object sender, EventArgs e)
 {
     if (PageControl.getGrid(Window.GetWindow(this)).Children[PageControl.getGrid(Window.GetWindow(this)).Children.Count - 1] != sProductExtraInfoControl)
     {
         KinectController.RemoveGestureEventHandler();
         sProductExtraInfoControl = new StylesetProductInfo(UserLookList[0].id);
         _sProductExtraInfo_Initialize(UserLookList[0]);
         _Global_C_AddControl(sProductExtraInfoControl);
     }
 }
        private void _Global_C_RemoveControl(UserControl targetControl)
        {
            Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(delegate
            {
                Grid MainGrid = PageControl.getGrid(Window.GetWindow(this));

                MainGrid.Children.Remove(targetControl);
                this.UpdateLayout();
            }));
        }
Пример #3
0
        private void _Global_C_RemoveControl(UserControl targetControl)
        {
            Grid MainGrid = PageControl.getGrid(Window.GetWindow(this));

            MainGrid.Children.Remove(targetControl);
        }
Пример #4
0
 private void _Main_Initialize()
 {
     PageControl.getGrid(Window.GetWindow(this)).Children.Add(MainPageControl);
 }