private void _Global_C_RemoveControl(UserControl targetControl) { Grid MainGrid = PageControl.getGrid(Window.GetWindow(this)); MainGrid.Children.Remove(targetControl); }
private void _Main_Initialize() { PageControl.getGrid(Window.GetWindow(this)).Children.Add(MainPageControl); }