Пример #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;
        }