예제 #1
0
파일: ListGroup.cs 프로젝트: mono/uia2atk
		public ListGroup (IRawElementProviderFragment provider): base (provider)
		{
			tableExpert = new TableImplementorHelper (this);

			IRawElementProviderFragment listProvider = provider.Navigate (NavigateDirection.Parent);
			selectionProvider = (ISelectionProvider)listProvider.GetPatternProvider(SelectionPatternIdentifiers.Pattern.Id);
			if (selectionProvider == null)
				throw new ArgumentException ("List should always implement ISelectionProvider");
			
			selectionHelper = new SelectionProviderUserHelper (provider, selectionProvider);
			Role = Atk.Role.LayeredPane;
		}
예제 #2
0
        public ListGroup(IRawElementProviderFragment provider) : base(provider)
        {
            tableExpert = new TableImplementorHelper(this);

            IRawElementProviderFragment listProvider = provider.Navigate(NavigateDirection.Parent);

            selectionProvider = (ISelectionProvider)listProvider.GetPatternProvider(SelectionPatternIdentifiers.Pattern.Id);
            if (selectionProvider == null)
            {
                throw new ArgumentException("List should always implement ISelectionProvider");
            }

            selectionHelper = new SelectionProviderUserHelper(provider, selectionProvider);
            Role            = Atk.Role.LayeredPane;
        }
예제 #3
0
파일: Tree.cs 프로젝트: ABEMBARKA/monoUI
        public Tree(IRawElementProviderFragment provider) : base(provider)
        {
            this.provider = provider;

            selectionProvider = (ISelectionProvider)provider.GetPatternProvider(SelectionPatternIdentifiers.Pattern.Id);
            if (selectionProvider == null)
            {
                throw new ArgumentException("Tree should always implement ISelectionProvider");
            }

            tableExpert = new TableImplementorHelper(this);

            Role = Atk.Role.TreeTable;

            selectionHelper = new SelectionProviderUserHelper(provider, selectionProvider);

            hasFocus = (bool)Provider.GetPropertyValue(
                AutomationElementIdentifiers.HasKeyboardFocusProperty.Id);
        }
예제 #4
0
 public TextContainerWithGrid(IRawElementProviderSimple provider) : base(provider)
 {
     tableExpert = new TableImplementorHelper(this);
 }
예제 #5
0
 public Table(IRawElementProviderFragment provider) : base(provider)
 {
     tableExpert = new TableImplementorHelper(this);
     Role        = Atk.Role.TreeTable;
 }
예제 #6
0
파일: List.cs 프로젝트: ABEMBARKA/monoUI
 public ListWithGrid(IRawElementProviderFragmentRoot provider) : base(provider)
 {
     tableExpert = new TableImplementorHelper(this);
 }
예제 #7
0
파일: Tree.cs 프로젝트: mono/uia2atk
		public Tree (IRawElementProviderFragment provider) : base (provider)
		{
			this.provider = provider;
			
			selectionProvider = (ISelectionProvider)provider.GetPatternProvider(SelectionPatternIdentifiers.Pattern.Id);
			if (selectionProvider == null)
				throw new ArgumentException ("Tree should always implement ISelectionProvider");

			tableExpert = new TableImplementorHelper (this);

			Role = Atk.Role.TreeTable;
			
			selectionHelper = new SelectionProviderUserHelper (provider, selectionProvider);

			hasFocus = (bool) Provider.GetPropertyValue (
				AutomationElementIdentifiers.HasKeyboardFocusProperty.Id);
		}
예제 #8
0
파일: List.cs 프로젝트: mono/uia2atk
		public ListWithGrid (IRawElementProviderFragmentRoot provider) : base (provider)
		{
			tableExpert = new TableImplementorHelper (this);
		}
예제 #9
0
		public ComboBoxOptionsTable (IRawElementProviderSimple provider) : base (provider)
		{
			Role = Atk.Role.TreeTable;
			tableExpert = new TableImplementorHelper (this);
		}
예제 #10
0
 public ComboBoxOptionsTable(IRawElementProviderSimple provider) : base(provider)
 {
     Role        = Atk.Role.TreeTable;
     tableExpert = new TableImplementorHelper(this);
 }
예제 #11
0
파일: Table.cs 프로젝트: mono/uia2atk
		public Table (IRawElementProviderFragment provider): base (provider)
		{
			tableExpert = new TableImplementorHelper (this);
			Role = Atk.Role.TreeTable;
		}