예제 #1
0
        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)
            });
        }
예제 #3
0
        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);
            }
        }
예제 #4
0
        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;
		}
예제 #6
0
 public GridProviderBehavior(ListViewProvider provider)
     : base(provider)
 {
     listView = (SWF.ListView)Provider.Control;
 }
		public ListItemCheckBoxToggleProviderBehavior (ListViewProvider.ListViewListItemCheckBoxProvider checkboxProvider)
			: base (checkboxProvider)
		{
			this.checkboxProvider = checkboxProvider;
		}
예제 #8
0
 public SelectionPatternCanSelectMultipleEvent(ListViewProvider provider)
     : base(provider,
            SelectionPatternIdentifiers.CanSelectMultipleProperty)
 {
 }
		public ListItemEditValuePatternIsReadOnlyEvent (ListViewProvider.ListViewListItemEditProvider provider)
			: base (provider, 
			        ValuePatternIdentifiers.IsReadOnlyProperty)
		{
			editProvider = provider;
		}
예제 #10
0
 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)
 {
 }
예제 #13
0
 public MultipleViewProviderBehavior(ListViewProvider provider)
     : base(provider)
 {
     listViewProvider = provider;
 }
예제 #14
0
 public TableProviderBehavior(ListViewProvider provider)
     : base(provider)
 {
     listViewProvider = provider;
 }
예제 #15
0
 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)
 {
 }
예제 #18
0
 public SelectionProviderBehavior(ListViewProvider provider)
     : base(provider)
 {
 }
예제 #19
0
 public GridPatternRowEvent(ListViewProvider provider)
     : base(provider,
            GridPatternIdentifiers.RowCountProperty)
 {
 }
예제 #20
0
 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;
		}