Пример #1
0
            /// <summary>
            ///  Initializes new instance of ComboBox item accessible object.
            /// </summary>
            /// <param name="owningComboBox">The owning ComboBox.</param>
            /// <param name="owningItem">The owning ComboBox item.</param>
            public ComboBoxItemAccessibleObject(ComboBox owningComboBox, Entry owningItem)
            {
                _owningComboBox = owningComboBox.OrThrowIfNull();
                _owningItem     = owningItem;

                _systemIAccessible = _owningComboBox.ChildListAccessibleObject.GetSystemIAccessibleInternal();
            }
            public ComboBoxUiaTextProvider(ComboBox owner)
            {
                _owningComboBox = owner.OrThrowIfNull();
                Debug.Assert(_owningComboBox.IsHandleCreated);

                _owningChildEdit = owner._childEdit;
            }
Пример #3
0
            public ChildAccessibleObject(ComboBox owner, IntPtr handle)
            {
                _owner = owner.OrThrowIfNull();

                Debug.Assert(owner.IsHandleCreated, "ComboBox's handle hasn't been created");

                if (owner.IsHandleCreated)
                {
                    UseStdAccessibleObjects(handle);
                }
            }