Наследование: FragmentRootControlProvider, IListProvider, IScrollBehaviorSubject
Пример #1
0
 public ListScrollBarProvider(ScrollBar scrollbar, ListProvider provider)
     : base(scrollbar)
 {
     this.provider = provider;
     name          = scrollbar is HScrollBar?Catalog.GetString("Horizontal Scroll Bar")
                         : Catalog.GetString("Vertical Scroll Bar");
 }
Пример #2
0
 protected override object GetProviderPropertyValue(int propertyId)
 {
     if (propertyId == AutomationElementIdentifiers.ControlTypeProperty.Id)
     {
         return(ControlType.ListItem.Id);
     }
     else if (propertyId == AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id)
     {
         return(ListProvider.GetPropertyValue(AutomationElementIdentifiers.IsKeyboardFocusableProperty.Id));
     }
     else if (propertyId == AutomationElementIdentifiers.HasKeyboardFocusProperty.Id ||
              propertyId == AutomationElementIdentifiers.NameProperty.Id ||
              propertyId == AutomationElementIdentifiers.IsOffscreenProperty.Id)
     {
         return(ListProvider.GetItemPropertyValue(this, propertyId));
     }
     else if (propertyId == AutomationElementIdentifiers.NativeWindowHandleProperty.Id)
     {
         return(null);
     }
     else
     {
         return(base.GetProviderPropertyValue(propertyId));
     }
 }
Пример #3
0
        public override void Initialize()
        {
            base.Initialize();

            SetBehavior(LegacyIAccessiblePatternIdentifiers.Pattern,
                        ListProvider.GetListItemBehaviorRealization(LegacyIAccessiblePatternIdentifiers.Pattern,
                                                                    this));
        }
Пример #4
0
 protected override ListItemProvider GetNewItemProvider(FragmentRootControlProvider rootProvider,
                                                        ListProvider provider,
                                                        Control control,
                                                        object objectItem)
 {
     return(new PropertyGridListItemProvider(
                this, view, (GridEntry)objectItem
                ));
 }
Пример #5
0
 protected virtual ListItemProvider GetNewItemProvider(FragmentRootControlProvider rootProvider,
                                                       ListProvider provider,
                                                       Control control,
                                                       object objectItem)
 {
     return(new ListItemProvider(rootProvider,
                                 provider,
                                 control,
                                 objectItem));
 }
Пример #6
0
 protected override object GetProviderPropertyValue(int propertyId)
 {
     if (propertyId == AEIds.IsEnabledProperty.Id)
     {
         return(true);
     }
     else if (propertyId == AEIds.IsOffscreenProperty.Id)
     {
         // Item is onscreen only when selected
         return(!ListProvider.IsItemSelected(this));
     }
     return(base.GetProviderPropertyValue(propertyId));
 }
Пример #7
0
 protected override ListItemProvider GetNewItemProvider(FragmentRootControlProvider rootProvider,
                                                        ListProvider provider,
                                                        Control control,
                                                        object objectItem)
 {
     if (objectItem is GridEntry gridEntry)
     {
         return(GetNewEntryProvider(gridEntry));
     }
     else
     {
         Log.Warn("PropertyGridViewProvider.GetNewItemProvider: objectItem is not GridEntry. "
                  + $"(objectItem==null)={objectItem==null}, objectItem?.GetType()='{objectItem?.GetType()}'");
         return(null);
     }
 }
Пример #8
0
			public ListScrollBarProvider (ScrollBar scrollbar, ListProvider provider)
				: base (scrollbar)
			{
				this.provider = provider;
				name = scrollbar is HScrollBar ? Catalog.GetString ("Horizontal Scroll Bar")
					: Catalog.GetString ("Vertical Scroll Bar");
			}
Пример #9
0
		protected virtual ListItemProvider GetNewItemProvider (FragmentRootControlProvider rootProvider,
		                                                       ListProvider provider,
		                                                       Control control,
		                                                       object objectItem)
		{
			return new ListItemProvider (rootProvider,
			                             provider, 
			                             control,
			                             objectItem);
		}
Пример #10
0
 public void Unselect()
 {
     ListProvider.UnselectItem(this);
 }
Пример #11
0
 public void Select()
 {
     ListProvider.SelectItem(this);
 }
Пример #12
0
		protected override ListItemProvider GetNewItemProvider (FragmentRootControlProvider rootProvider,
		                                                        ListProvider provider,
		                                                        SWF.Control control,
		                                                        object objectItem)
		{
			return new ListViewListItemProvider (rootProvider,
			                                     this,
			                                     listView,
			                                     (SWF.ListViewItem) objectItem);
		}
Пример #13
0
		protected override ListItemProvider GetNewItemProvider (FragmentRootControlProvider rootProvider,
		                                                        ListProvider provider,
		                                                        SWF.Control control,
		                                                        object objectItem)
		{
			return new DataGridDataItemProvider (this, 
			                                     datagridview, 
			                                     (SWF.DataGridViewRow) objectItem);
		}
Пример #14
0
		protected override ListItemProvider GetNewItemProvider (FragmentRootControlProvider rootProvider,
		                                                        ListProvider provider,
		                                                        Control control,
		                                                        object objectItem)
		{
			return new PropertyGridListItemProvider (
				this, view, (GridEntry) objectItem
			);
		}