예제 #1
0
 /// <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) { }
예제 #2
0
        //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;
        }
예제 #3
0
		/// <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;
		}
예제 #4
0
        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;
        }