C# Класс System.Windows.Controls.ScrollViewer

Наследование: ContentControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
ComputedHorizontalScrollBarVisibilityProperty DependencyProperty
ComputedVerticalScrollBarVisibilityProperty DependencyProperty
ExtentHeightProperty DependencyProperty
ExtentWidthProperty DependencyProperty
HorizontalOffsetProperty DependencyProperty
HorizontalScrollBarVisibilityProperty DependencyProperty
ScrollableHeightProperty DependencyProperty
ScrollableWidthProperty DependencyProperty
VerticalOffsetProperty DependencyProperty
VerticalScrollBarVisibilityProperty DependencyProperty
ViewportHeightProperty DependencyProperty
ViewportWidthProperty DependencyProperty

Private Properties

Свойство Тип Описание
HandleScroll void
MeasureOverride Size
OnScrollBarVisibilityChanged void
OnScrollInfoDependencyPropertyChanged void
RaiseOffsetChanged void
RaiseUIAScrollBarSet void
RaiseViewportChangedEvent void
RaiseVisibilityChangedEvent void
ScrollInDirection void

Открытые методы

Метод Описание
GetHorizontalScrollBarVisibility ( DependencyObject element ) : ScrollBarVisibility

Gets the value of the HorizontalScrollBarVisibility dependency property from a given element.

GetVerticalScrollBarVisibility ( DependencyObject element ) : ScrollBarVisibility

Gets the value of the VerticalScrollBarVisibility dependency property from a given element.

InvalidateScrollInfo ( ) : void
OnApplyTemplate ( ) : void
ScrollToHorizontalOffset ( double offset ) : void

Scrolls the content within the ScrollViewer to the specified horizontal offset position.

ScrollToVerticalOffset ( double offset ) : void

Scrolls the content within the ScrollViewer to the specified vertical offset position.

ScrollViewer ( ) : System

Initializes a new instance of the ScrollViewer class.

SetHorizontalScrollBarVisibility ( DependencyObject element, ScrollBarVisibility horizontalScrollBarVisibility ) : void

Sets the value of the HorizontalScrollBarVisibility dependency property to a given element.

SetScrollOffset ( Orientation orientation, double value ) : void
SetVerticalScrollBarVisibility ( DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility ) : void

Sets the value of the VerticalScrollBarVisibility dependency property to a given element.

UpdateScrollBar ( Orientation orientation, double value ) : void
UpdateScrollbarVisibility ( ) : void

Защищенные методы

Метод Описание
OnCreateAutomationPeer ( ) : AutomationPeer
OnKeyDown ( KeyEventArgs e ) : void

Responds to the KeyDown event.

OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void

Called when the user presses the left mouse button over the ListBoxItem.

OnMouseWheel ( MouseWheelEventArgs e ) : void

Приватные методы

Метод Описание
HandleScroll ( Orientation orientation, ScrollEventArgs e ) : void

Handles the ScrollBar.Scroll event and updates the UI.

MeasureOverride ( Size availableSize ) : Size
OnScrollBarVisibilityChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void

Called when the HorizontalScrollBarVisibility/VerticalScrollBarVisibility property has changed.

OnScrollInfoDependencyPropertyChanged ( DependencyObject d, DependencyPropertyChangedEventArgs e ) : void
RaiseOffsetChanged ( double offset, AutomationOrientation orientation ) : void
RaiseUIAScrollBarSet ( AutomationOrientation orientation, ScrollBar oldValue, ScrollBar newValue ) : void
RaiseViewportChangedEvent ( double viewportWidth, double viewportHeight ) : void
RaiseVisibilityChangedEvent ( Visibility visibility, AutomationOrientation orientation ) : void
ScrollInDirection ( Key key ) : void

Scrolls the view in the specified direction.

Similar to WPF's corresponding ScrollViewer method.

Описание методов

GetHorizontalScrollBarVisibility() публичный статический Метод

Gets the value of the HorizontalScrollBarVisibility dependency property from a given element.
public static GetHorizontalScrollBarVisibility ( DependencyObject element ) : ScrollBarVisibility
element DependencyObject The element from which the property value is read.
Результат ScrollBarVisibility

GetVerticalScrollBarVisibility() публичный статический Метод

Gets the value of the VerticalScrollBarVisibility dependency property from a given element.
public static GetVerticalScrollBarVisibility ( DependencyObject element ) : ScrollBarVisibility
element DependencyObject The element from which the property value is read.
Результат ScrollBarVisibility

InvalidateScrollInfo() публичный Метод

public InvalidateScrollInfo ( ) : void
Результат void

OnApplyTemplate() публичный Метод

public OnApplyTemplate ( ) : void
Результат void

OnCreateAutomationPeer() защищенный Метод

protected OnCreateAutomationPeer ( ) : AutomationPeer
Результат AutomationPeer

OnKeyDown() защищенный Метод

Responds to the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs Provides data for KeyEventArgs.
Результат void

OnMouseLeftButtonDown() защищенный Метод

Called when the user presses the left mouse button over the ListBoxItem.
protected OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs The event data.
Результат void

OnMouseWheel() защищенный Метод

protected OnMouseWheel ( MouseWheelEventArgs e ) : void
e MouseWheelEventArgs
Результат void

ScrollToHorizontalOffset() публичный Метод

Scrolls the content within the ScrollViewer to the specified horizontal offset position.
public ScrollToHorizontalOffset ( double offset ) : void
offset double The position that the content scrolls to.
Результат void

ScrollToVerticalOffset() публичный Метод

Scrolls the content within the ScrollViewer to the specified vertical offset position.
public ScrollToVerticalOffset ( double offset ) : void
offset double The position that the content scrolls to.
Результат void

ScrollViewer() публичный Метод

Initializes a new instance of the ScrollViewer class.
public ScrollViewer ( ) : System
Результат System

SetHorizontalScrollBarVisibility() публичный статический Метод

Sets the value of the HorizontalScrollBarVisibility dependency property to a given element.
public static SetHorizontalScrollBarVisibility ( DependencyObject element, ScrollBarVisibility horizontalScrollBarVisibility ) : void
element DependencyObject The element on which to set the property value.
horizontalScrollBarVisibility ScrollBarVisibility The property value to set.
Результат void

SetScrollOffset() публичный Метод

public SetScrollOffset ( Orientation orientation, double value ) : void
orientation Orientation
value double
Результат void

SetVerticalScrollBarVisibility() публичный статический Метод

Sets the value of the VerticalScrollBarVisibility dependency property to a given element.
public static SetVerticalScrollBarVisibility ( DependencyObject element, ScrollBarVisibility verticalScrollBarVisibility ) : void
element DependencyObject The element on which to set the property value.
verticalScrollBarVisibility ScrollBarVisibility The property value to set.
Результат void

UpdateScrollBar() публичный Метод

public UpdateScrollBar ( Orientation orientation, double value ) : void
orientation Orientation
value double
Результат void

UpdateScrollbarVisibility() публичный Метод

public UpdateScrollbarVisibility ( ) : void
Результат void

Описание свойств

ComputedHorizontalScrollBarVisibilityProperty публичное статическое свойство

Identifies the ComputedHorizontalScrollBarVisibility dependency property.
public static DependencyProperty ComputedHorizontalScrollBarVisibilityProperty
Результат DependencyProperty

ComputedVerticalScrollBarVisibilityProperty публичное статическое свойство

Identifies the ComputedVerticalScrollBarVisibility dependency property.
public static DependencyProperty ComputedVerticalScrollBarVisibilityProperty
Результат DependencyProperty

ExtentHeightProperty публичное статическое свойство

Identifies the ViewportHeight dependency property.
public static DependencyProperty ExtentHeightProperty
Результат DependencyProperty

ExtentWidthProperty публичное статическое свойство

Identifies the ExtentWidth dependency property.
public static DependencyProperty ExtentWidthProperty
Результат DependencyProperty

HorizontalOffsetProperty публичное статическое свойство

Identifies the HorizontalOffset dependency property.
public static DependencyProperty HorizontalOffsetProperty
Результат DependencyProperty

HorizontalScrollBarVisibilityProperty публичное статическое свойство

Identifies the HorizontalScrollBarVisibility dependency property.
public static DependencyProperty HorizontalScrollBarVisibilityProperty
Результат DependencyProperty

ScrollableHeightProperty публичное статическое свойство

Identifies the ScrollableHeight dependency property.
public static DependencyProperty ScrollableHeightProperty
Результат DependencyProperty

ScrollableWidthProperty публичное статическое свойство

Identifies the ScrollableWidth dependency property.
public static DependencyProperty ScrollableWidthProperty
Результат DependencyProperty

VerticalOffsetProperty публичное статическое свойство

Identifies the VerticalOffset dependency property.
public static DependencyProperty VerticalOffsetProperty
Результат DependencyProperty

VerticalScrollBarVisibilityProperty публичное статическое свойство

Identifies the VerticalScrollBarVisibility dependency property.
public static DependencyProperty VerticalScrollBarVisibilityProperty
Результат DependencyProperty

ViewportHeightProperty публичное статическое свойство

Identifies the ViewportHeight dependency property.
public static DependencyProperty ViewportHeightProperty
Результат DependencyProperty

ViewportWidthProperty публичное статическое свойство

Identifies the ViewportWidth dependency property.
public static DependencyProperty ViewportWidthProperty
Результат DependencyProperty