/// <summary> /// Creates new instance of the object and initializes it with owner control. /// </summary> /// <param name="owner">Reference to owner control.</param> public RibbonBarAccessibleObject(ItemControl owner) : base(owner) { }
//internal void SetSystemFocus() //{ // if (!this.Focused) // { // if (m_BaseItemContainer is GenericItemContainer) // ((GenericItemContainer)m_BaseItemContainer).SetSystemFocus(); // this.Focus(); // } //} #endregion #region IOwnerItemEvents Implementation protected void CopyIOwnerEvents(ItemControl target) { target.ItemClick = this.ItemClick; }
/// <summary> /// Creates new instance of the object and initializes it with owner control. /// </summary> /// <param name="owner">Reference to owner control.</param> public ItemControlAccessibleObject(ItemControl owner):base(owner) { m_Owner = owner; }
private int GetItemControlHeight(ItemControl c) { int height = c.GetAutoSizeHeight(); #if FRAMEWORK20 if (!c.MinimumSize.IsEmpty && c.MinimumSize.Height > height) height = (c.MinimumSize.Height + ElementStyleLayout.VerticalStyleWhiteSpace(c.GetPaintBackgroundStyle())); else if (!c.MaximumSize.IsEmpty && height > c.MaximumSize.Height) height = c.MaximumSize.Height + ElementStyleLayout.VerticalStyleWhiteSpace(c.GetPaintBackgroundStyle()); #endif return height; }