Beispiel #1
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public DropDownButton()
        {
            ContextMenuService.Coerce(this);

            this.Loaded   += this.OnLoaded;
            this.Unloaded += this.OnUnloaded;
        }
Beispiel #2
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 public MenuItem()
 {
     ContextMenuService.Coerce(this);
     ToolTip = new ToolTip();
     (ToolTip as ToolTip).Template = null;
     FocusManager.SetIsFocusScope(this, true);
     this.MouseWheel += OnMenuItemMouseWheel;
 }
Beispiel #3
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public SplitButton()
        {
            ContextMenuService.Coerce(this);
            //FocusManager.SetIsFocusScope(this, true);
            Click += OnClick;
            //            AddHandler(ClickEvent, OnClick);

            this.Loaded   += this.OnLoaded;
            this.Unloaded += this.OnUnloaded;
        }
Beispiel #4
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public RibbonTabItem()
        {
            this.AddLogicalChild(this.groupsContainer);
            this.groupsContainer.Content = this.groupsInnerContainer;

            // Force redirection of DataContext. This is needed, because we detach the container from the visual tree and attach it to a diffrent one (the popup/dropdown) when the ribbon is minimized.
            this.groupsInnerContainer.SetBinding(DataContextProperty, new Binding("DataContext")
            {
                Source = this
            });

            ContextMenuService.Coerce(this);

            this.Loaded   += this.OnLoaded;
            this.Unloaded += this.OnUnloaded;
        }
Beispiel #5
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public RibbonTabControl()
        {
            ContextMenuService.Coerce(this);

            this.Loaded += this.OnLoaded;
        }
Beispiel #6
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public RadioButton()
 {
     ContextMenuService.Coerce(this);
     FocusManager.SetIsFocusScope(this, true);
 }
Beispiel #7
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public CheckBox()
 {
     ContextMenuService.Coerce(this);
     FocusManager.SetIsFocusScope(this, true);
 }
Beispiel #8
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 protected RibbonControl()
 {
     ContextMenuService.Coerce(this);
 }