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)
335new AutomationPropertyInfo( null, ScrollPattern.HorizontalScrollPercentProperty, typeof(double), (double)0 ), 336new AutomationPropertyInfo( null, ScrollPattern.HorizontalViewSizeProperty, typeof(double), (double)100 ), 337new AutomationPropertyInfo( null, ScrollPattern.VerticalScrollPercentProperty, typeof(double), (double)0 ), 338new AutomationPropertyInfo( null, ScrollPattern.VerticalViewSizeProperty, typeof(double), (double)100 ), 339new AutomationPropertyInfo( convertToBool, ScrollPattern.HorizontallyScrollableProperty, typeof(bool), false ), 340new AutomationPropertyInfo( convertToBool, ScrollPattern.VerticallyScrollableProperty, typeof(bool), false ), 416private static readonly AutomationProperty [ ] ScrollProperties = { ScrollPattern.HorizontalScrollPercentProperty, 417ScrollPattern.HorizontalViewSizeProperty, 418ScrollPattern.HorizontallyScrollableProperty, 419ScrollPattern.VerticallyScrollableProperty, 420ScrollPattern.VerticalScrollPercentProperty, 421ScrollPattern.VerticalViewSizeProperty }; 472new 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)
376else if ((idProp == ScrollPattern.HorizontalScrollPercentProperty || 377idProp == ScrollPattern.VerticalScrollPercentProperty) || 378idProp == ScrollPattern.HorizontalViewSizeProperty || 379idProp == 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); 1657if ((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) 243return (double)ScrollPattern.NoScroll; 272if ((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) 490if ((int)verticalPercent != (int)ScrollPattern.NoScroll) 494else if ((int)horizontalPercent == (int)ScrollPattern.NoScroll) 537return (double)ScrollPattern.NoScroll; 561return (double)ScrollPattern.NoScroll; 728&& idProp == ScrollPattern.HorizontalScrollPercentProperty)