public override void OnApplyTemplate() { DemoModuleControl demoControl = DemoModuleControl.FindParentDemoModuleControl(this); if (demoControl == null) { return; } NavBarControl navBar = (NavBarControl)DemoModuleControl.FindDemoContent(typeof(NavBarControl), (DependencyObject)this.Content); ((NavBarDemoModule)demoControl.DemoModule).navBarControl = navBar; demoControl.DataContext = navBar; }
void EnsurePivot() { if (PivotGridControl != null) { return; } DemoModuleControl.DemoContent = DemoModuleControl.FindDemoContent(typeof(PivotGridControl), (DependencyObject)Content); if (DemoModuleControl.DemoContent as FrameworkElement == null) { return; } PivotGridControl = LayoutHelper.FindElement(((FrameworkElement)DemoModuleControl.DemoContent), IsPivot) as PivotGridControl; }
protected virtual SchedulerControl FindScheduler() { return((SchedulerControl)DemoModuleControl.FindDemoContent(typeof(SchedulerControl), (DependencyObject)DemoModuleControl.Content)); }
RichEditControl FindRichEdit() { return((RichEditControl)DemoModuleControl.FindDemoContent(typeof(RichEditControl), (DependencyObject)Content)); }
protected virtual void OnLoaded(object sender, RoutedEventArgs e) { Manager = (BarManager)DemoModuleControl.FindDemoContent(typeof(BarManager), this); Ribbon = (RibbonControl)DemoModuleControl.FindDemoContent(typeof(RibbonControl), this); DemoModuleControl.DemoContent = Manager; }
protected virtual TreeListControl FindTreeList() { return((TreeListControl)DemoModuleControl.FindDemoContent(typeof(TreeListControl), (DependencyObject)DemoModuleControl.Content)); }
protected override object GetModuleDataContext() { return(DemoModuleControl.FindDemoContent(typeof(PivotGridControl), (DependencyObject)Content)); }
public virtual GridControl FindGrid() { return((GridControl)DemoModuleControl.FindDemoContent(typeof(GridControl), (DependencyObject)DemoModuleControl.Content)); }