Пример #1
0
        public override AccessibleObject GetChild(int index)
        {
            RadDropDownButton button = this.Owner as RadDropDownButton;

            if (button is RadApplicationMenu)
            {
                return(new RadApplicationMenuButtonElementAccessibleObject(button.DropDownButtonElement as RadApplicationMenuButtonElement));
            }

            return(new RadDropDownButtonElementAccessibleObject(button.DropDownButtonElement));
        }
        public override AccessibleObject GetChild(int index)
        {
            RadDropDownButton owner = this.Owner as RadDropDownButton;
            string            name  = owner.Name;

            if (string.IsNullOrEmpty(name))
            {
                name = "RadDropDownButton";
            }
            if (owner is RadApplicationMenu)
            {
                return((AccessibleObject) new RadApplicationMenuButtonElementAccessibleObject(owner.DropDownButtonElement as RadApplicationMenuButtonElement, name));
            }
            return((AccessibleObject) new RadDropDownButtonElementAccessibleObject(owner.DropDownButtonElement, name));
        }
 public RadDropDownButtonAccessibleObject(RadDropDownButton owner)
     : base((Control)owner)
 {
     this.owner = owner;
 }
Пример #4
0
 public RadDropDownButtonAccessibleObject(RadDropDownButton owner)
     : base(owner)
 {
 }