Esempio n. 1
0
        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;
        }
Esempio n. 2
0
 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));
 }
Esempio n. 5
0
 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));
 }
Esempio n. 7
0
 protected override object GetModuleDataContext()
 {
     return(DemoModuleControl.FindDemoContent(typeof(PivotGridControl), (DependencyObject)Content));
 }
Esempio n. 8
0
 public virtual GridControl FindGrid()
 {
     return((GridControl)DemoModuleControl.FindDemoContent(typeof(GridControl), (DependencyObject)DemoModuleControl.Content));
 }