1 instantiation of ScrollPattern
UIAutomationClient (1)
System\Windows\Automation\ScrollPattern.cs (1)
196return new ScrollPattern(el, hPattern, cached);
72 references to ScrollPattern
UIAutomationClient (14)
MS\Internal\Automation\Schema.cs (14)
341new AutomationPropertyInfo( null, ScrollPattern.HorizontalScrollPercentProperty, typeof(double), (double)0 ), 342new AutomationPropertyInfo( null, ScrollPattern.HorizontalViewSizeProperty, typeof(double), (double)100 ), 343new AutomationPropertyInfo( null, ScrollPattern.VerticalScrollPercentProperty, typeof(double), (double)0 ), 344new AutomationPropertyInfo( null, ScrollPattern.VerticalViewSizeProperty, typeof(double), (double)100 ), 345new AutomationPropertyInfo( convertToBool, ScrollPattern.HorizontallyScrollableProperty, typeof(bool), false ), 346new AutomationPropertyInfo( convertToBool, ScrollPattern.VerticallyScrollableProperty, typeof(bool), false ), 422private static readonly AutomationProperty [ ] ScrollProperties = { ScrollPattern.HorizontalScrollPercentProperty, 423ScrollPattern.HorizontalViewSizeProperty, 424ScrollPattern.HorizontallyScrollableProperty, 425ScrollPattern.VerticallyScrollableProperty, 426ScrollPattern.VerticalScrollPercentProperty, 427ScrollPattern.VerticalViewSizeProperty }; 478new AutomationPatternInfo( ScrollPattern.Pattern, ScrollProperties, new WrapObjectClientSide(ScrollPattern.Wrap) ),
UIAutomationClientSideProviders (58)
MS\Internal\AutomationProxies\EventManager.cs (14)
285IScrollProvider scroll = el.GetPatternProvider(ScrollPattern.Pattern) as IScrollProvider; 289RaisePropertyChangedEvent(el, ScrollPattern.VerticalViewSizeProperty, scroll.VerticalViewSize); 294IScrollProvider scroll = el.GetPatternProvider(ScrollPattern.Pattern) as IScrollProvider; 298RaisePropertyChangedEvent(el, ScrollPattern.HorizontalViewSizeProperty, scroll.HorizontalViewSize); 417IScrollProvider scroll = el.GetPatternProvider (ScrollPattern.Pattern) as IScrollProvider; 418if (scroll == null || scroll.VerticalScrollPercent == ScrollPattern.NoScroll) 421RaisePropertyChangedEvent(el, ScrollPattern.VerticalScrollPercentProperty, scroll.VerticalScrollPercent); 426IScrollProvider scroll = el.GetPatternProvider (ScrollPattern.Pattern) as IScrollProvider; 427if (scroll == null || scroll.HorizontalScrollPercent == ScrollPattern.NoScroll) 430RaisePropertyChangedEvent(el, ScrollPattern.HorizontalScrollPercentProperty, scroll.HorizontalScrollPercent); 530_objectIdClient.Add(ScrollPattern.VerticalViewSizeProperty, new RaiseEvent(HandleVerticalViewSizeProperty)); 531_objectIdClient.Add(ScrollPattern.HorizontalViewSizeProperty, new RaiseEvent(HandleHorizontalViewSizeProperty)); 545_objectIdScroll.Add(ScrollPattern.VerticalScrollPercentProperty, new RaiseEvent(HandleVerticalScrollPercentProperty)); 546_objectIdScroll.Add(ScrollPattern.HorizontalScrollPercentProperty, new RaiseEvent(HandleHorizontalScrollPercentProperty));
MS\Internal\AutomationProxies\NonClientArea.cs (9)
317if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd)) 376return (double) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 385return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 394return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 403return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 412return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 421return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 673if ((idProp == ScrollPattern.VerticalScrollPercentProperty && idObject != NativeMethods.OBJID_VSCROLL) || 674(idProp == ScrollPattern.HorizontalScrollPercentProperty && idObject != NativeMethods.OBJID_HSCROLL))
MS\Internal\AutomationProxies\ProxyHwnd.cs (4)
381else if ((idProp == ScrollPattern.HorizontalScrollPercentProperty || 382idProp == ScrollPattern.VerticalScrollPercentProperty) || 383idProp == ScrollPattern.HorizontalViewSizeProperty || 384idProp == ScrollPattern.VerticalViewSizeProperty )
MS\Internal\AutomationProxies\WindowsListBox.cs (1)
154else if (iid == ScrollPattern.Pattern && WindowScroll.HasScrollableStyle(_hwnd))
MS\Internal\AutomationProxies\WindowsListView.cs (11)
650if (fScrollSuccess && (((int)horizontalPercent != (int)ScrollPattern.NoScroll && (int)horizontalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd)) 651|| ((int)verticalPercent != (int)ScrollPattern.NoScroll && (int)verticalPercent != (int)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd)))) 679return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalScrollPercentProperty, _hwnd); 689return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalScrollPercentProperty, _hwnd); 699return (double)WindowScroll.GetPropertyScroll(ScrollPattern.HorizontalViewSizeProperty, _hwnd); 709return (double)WindowScroll.GetPropertyScroll(ScrollPattern.VerticalViewSizeProperty, _hwnd); 719return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.HorizontallyScrollableProperty, _hwnd); 728return (bool) WindowScroll.GetPropertyScroll (ScrollPattern.VerticallyScrollableProperty, _hwnd); 1656if ((int)fScrollPos == (int)ScrollPattern.NoScroll)
MS\Internal\AutomationProxies\WindowsScroll.cs (10)
81if (idProp == ScrollPattern.HorizontalScrollPercentProperty) 83return Scrollable (hwnd, NativeMethods.SB_HORZ) ? GetScrollInfo (hwnd, NativeMethods.SB_HORZ) : ScrollPattern.NoScroll; 85else if (idProp == ScrollPattern.VerticalScrollPercentProperty) 87return Scrollable (hwnd, NativeMethods.SB_VERT) ? GetScrollInfo (hwnd, NativeMethods.SB_VERT) : ScrollPattern.NoScroll; 89else if (idProp == ScrollPattern.HorizontalViewSizeProperty) 93else if (idProp == ScrollPattern.VerticalViewSizeProperty) 97else if (idProp == ScrollPattern.HorizontallyScrollableProperty) 101else if (idProp == ScrollPattern.VerticallyScrollableProperty) 242return (double)ScrollPattern.NoScroll; 271if ((int)fScrollPos == (int)ScrollPattern.NoScroll)
MS\Internal\AutomationProxies\WindowsTab.cs (9)
55_upDownEvents[0]._idProp = ScrollPattern.HorizontalScrollPercentProperty; 102if ((idProp == ScrollPattern.VerticalScrollPercentProperty && idObject != NativeMethods.OBJID_VSCROLL) || 103(idProp == ScrollPattern.HorizontalScrollPercentProperty && idObject != NativeMethods.OBJID_HSCROLL)) 137if (iid == ScrollPattern.Pattern) 489if ((int)verticalPercent != (int)ScrollPattern.NoScroll) 493else if ((int)horizontalPercent == (int)ScrollPattern.NoScroll) 536return (double)ScrollPattern.NoScroll; 560return (double)ScrollPattern.NoScroll; 726&& idProp == ScrollPattern.HorizontalScrollPercentProperty)