public override void Disconnect() { ListViewProvider provider = (ListViewProvider)Provider; ((SWF.ListView)provider.Control).Columns.UIACollectionChanged -= OnUIAColumnsCollectionChanged; }
public IRawElementProviderSimple[] GetColumnHeaderItems() { ListViewProvider listViewProvider = (ListViewProvider)ProviderFactory.FindProvider(EditProvider.ItemProvider.ListView); return(new IRawElementProviderSimple [] { listViewProvider.HeaderProvider.GetHeaderItemFrom(EditProvider.ColumnHeader) }); }
private int ItemsInGroupCount() { ListViewProvider listViewProvider = (ListViewProvider)ProviderFactory.FindProvider(viewGroupProvider.ListView); if (listViewProvider.IsDefaultGroup(viewGroupProvider.Group) == true) { int itemsInGroup = 0; for (int index = 0; index < viewGroupProvider.ListView.Items.Count; index++) { if (viewGroupProvider.ListView.Items [index].Group == null) { itemsInGroup++; } } return(itemsInGroup); } else { return(viewGroupProvider.Group.Items.Count); } }
public IRawElementProviderSimple GetItem(int row, int column) { int rowCount = RowCount; int columnCount = ColumnCount; //According to http://msdn.microsoft.com/en-us/library/ms743401.aspx if (row < 0 || column < 0 || row >= rowCount || column >= columnCount) { throw new ArgumentOutOfRangeException(); } ListViewProvider provider = (ListViewProvider)Provider; if (listView.View == SWF.View.Details) { // FIXME: In Vista when listView.Groups == 0 no Groups are added, // and we should iterate when listView.Groups > 0 SWF.ListViewItem item = listView.Items [row]; ListViewProvider.ListViewListItemProvider itemProvider = null; if ((listView.Groups == null || listView.Groups.Count == 0) && !listView.ShowGroups) { itemProvider = provider.GetItem(item); } else { ListViewProvider.ListViewGroupProvider groupProvider = provider.GetGroupProviderFrom(provider.GetGroupFrom(item)); itemProvider = (ListViewProvider.ListViewListItemProvider)groupProvider.GetItem(item); } return(itemProvider.GetEditProviderAtColumn(column)); } else //Is View.List { return(provider.GetChildProviderAt((column * rowCount) + row)); } }
public ListItemCheckBoxAutomationIsOffscreenPropertyEvent (ListViewProvider.ListViewListItemCheckBoxProvider provider) : base (provider) { listviewProvider = provider.ItemProvider.ListViewProvider; }
public GridProviderBehavior(ListViewProvider provider) : base(provider) { listView = (SWF.ListView)Provider.Control; }
public ListItemCheckBoxToggleProviderBehavior (ListViewProvider.ListViewListItemCheckBoxProvider checkboxProvider) : base (checkboxProvider) { this.checkboxProvider = checkboxProvider; }
public SelectionPatternCanSelectMultipleEvent(ListViewProvider provider) : base(provider, SelectionPatternIdentifiers.CanSelectMultipleProperty) { }
public ListItemEditValuePatternIsReadOnlyEvent (ListViewProvider.ListViewListItemEditProvider provider) : base (provider, ValuePatternIdentifiers.IsReadOnlyProperty) { editProvider = provider; }
public TablePatternColumnHeadersEvent(ListViewProvider provider) : base(provider, TablePatternIdentifiers.ColumnHeadersProperty) { }
public ListItemCheckBoxTogglePatternToggleStateEvent (ListViewProvider.ListViewListItemCheckBoxProvider checkBoxProvider) : base (checkBoxProvider, TogglePatternIdentifiers.ToggleStateProperty) { viewItem = (SWF.ListViewItem) checkBoxProvider.ItemProvider.ObjectItem; }
public SelectionPatternSelectionEvent(ListViewProvider provider) : base(provider, SelectionPatternIdentifiers.SelectionProperty) { }
public MultipleViewProviderBehavior(ListViewProvider provider) : base(provider) { listViewProvider = provider; }
public TableProviderBehavior(ListViewProvider provider) : base(provider) { listViewProvider = provider; }
public SelectionPatternInvalidatedEvent(ListViewProvider provider) : base(provider, SelectionPatternIdentifiers.InvalidatedEvent) { }
public HeaderItemAutomationBoundingRectanglePropertyEvent (ListViewProvider.ListViewHeaderItemProvider provider) : base (provider) { itemProvider = provider; }
public GridPatternColumnReorderedEvent(ListViewProvider provider) : base(provider, GridPatternIdentifiers.ColumnReorderedEvent) { }
public SelectionProviderBehavior(ListViewProvider provider) : base(provider) { }
public GridPatternRowEvent(ListViewProvider provider) : base(provider, GridPatternIdentifiers.RowCountProperty) { }
public GridPatternColumnEvent(ListViewProvider provider) : base(provider, GridPatternIdentifiers.ColumnCountProperty) { }
public HeaderItemAutomationIsOffScreenPropertyEvent (ListViewProvider.ListViewHeaderItemProvider provider) : base (provider) { itemProvider = provider; }
public ListItemEditAutomationHasKeyboardFocusPropertyEvent (ListViewProvider.ListViewListItemEditProvider editProvider) : base (editProvider) { this.editProvider = editProvider; }