Exemple #1
0
        public RibbonControl()
        {
            this.OverrideStyleKey <RibbonControl>();

            QuickAccessToolBar = new RibbonToolBar();
            QuickAccessToolBar.SetBinding(Extension.SkinProperty, new Binding {
                Path = new PropertyPath(RibbonControlStyling.QuickAccessToolBarSkinProperty), Source = this
            });

            var ribbonPageCategory = new RibbonPageCategory(this);

            Pages = new RibbonPageCollection(ribbonPageCategory);

            SelectorController = new SelectorController <RibbonControl, RibbonPage>(this, new RibbonControlSelectorAdvisor(this, ribbonPageCategory))
            {
                AllowNullSelection = false
            };
        }
Exemple #2
0
 private void OnRibbonItemRemoved(RibbonToolBar toolBar)
 {
 }
Exemple #3
0
 internal RibbonItemCollection(RibbonToolBar toolBar) : base(toolBar)
 {
     ToolBar = toolBar;
 }
Exemple #4
0
 private void OnRibbonItemAdded(RibbonToolBar toolBar)
 {
 }