C# Class System.Windows.Controls.ScrollViewer

Inheritance: ContentControl
Afficher le fichier Open project: shana/moon Class Usage Examples

Méthodes publiques

Свойство Type Description
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

Свойство Type Description
HandleScroll void
MeasureOverride Size
OnScrollBarVisibilityChanged void
OnScrollInfoDependencyPropertyChanged void
RaiseOffsetChanged void
RaiseUIAScrollBarSet void
RaiseViewportChangedEvent void
RaiseVisibilityChangedEvent void
ScrollInDirection void

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

GetHorizontalScrollBarVisibility() public static méthode

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.
Résultat ScrollBarVisibility

GetVerticalScrollBarVisibility() public static méthode

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.
Résultat ScrollBarVisibility

InvalidateScrollInfo() public méthode

public InvalidateScrollInfo ( ) : void
Résultat void

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnCreateAutomationPeer() protected méthode

protected OnCreateAutomationPeer ( ) : AutomationPeer
Résultat AutomationPeer

OnKeyDown() protected méthode

Responds to the KeyDown event.
protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs Provides data for KeyEventArgs.
Résultat void

OnMouseLeftButtonDown() protected méthode

Called when the user presses the left mouse button over the ListBoxItem.
protected OnMouseLeftButtonDown ( MouseButtonEventArgs e ) : void
e MouseButtonEventArgs The event data.
Résultat void

OnMouseWheel() protected méthode

protected OnMouseWheel ( MouseWheelEventArgs e ) : void
e MouseWheelEventArgs
Résultat void

ScrollToHorizontalOffset() public méthode

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.
Résultat void

ScrollToVerticalOffset() public méthode

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.
Résultat void

ScrollViewer() public méthode

Initializes a new instance of the ScrollViewer class.
public ScrollViewer ( ) : System
Résultat System

SetHorizontalScrollBarVisibility() public static méthode

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.
Résultat void

SetScrollOffset() public méthode

public SetScrollOffset ( Orientation orientation, double value ) : void
orientation Orientation
value double
Résultat void

SetVerticalScrollBarVisibility() public static méthode

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.
Résultat void

UpdateScrollBar() public méthode

public UpdateScrollBar ( Orientation orientation, double value ) : void
orientation Orientation
value double
Résultat void

UpdateScrollbarVisibility() public méthode

public UpdateScrollbarVisibility ( ) : void
Résultat void

Property Details

ComputedHorizontalScrollBarVisibilityProperty public_oe static_oe property

Identifies the ComputedHorizontalScrollBarVisibility dependency property.
public static DependencyProperty ComputedHorizontalScrollBarVisibilityProperty
Résultat DependencyProperty

ComputedVerticalScrollBarVisibilityProperty public_oe static_oe property

Identifies the ComputedVerticalScrollBarVisibility dependency property.
public static DependencyProperty ComputedVerticalScrollBarVisibilityProperty
Résultat DependencyProperty

ExtentHeightProperty public_oe static_oe property

Identifies the ViewportHeight dependency property.
public static DependencyProperty ExtentHeightProperty
Résultat DependencyProperty

ExtentWidthProperty public_oe static_oe property

Identifies the ExtentWidth dependency property.
public static DependencyProperty ExtentWidthProperty
Résultat DependencyProperty

HorizontalOffsetProperty public_oe static_oe property

Identifies the HorizontalOffset dependency property.
public static DependencyProperty HorizontalOffsetProperty
Résultat DependencyProperty

HorizontalScrollBarVisibilityProperty public_oe static_oe property

Identifies the HorizontalScrollBarVisibility dependency property.
public static DependencyProperty HorizontalScrollBarVisibilityProperty
Résultat DependencyProperty

ScrollableHeightProperty public_oe static_oe property

Identifies the ScrollableHeight dependency property.
public static DependencyProperty ScrollableHeightProperty
Résultat DependencyProperty

ScrollableWidthProperty public_oe static_oe property

Identifies the ScrollableWidth dependency property.
public static DependencyProperty ScrollableWidthProperty
Résultat DependencyProperty

VerticalOffsetProperty public_oe static_oe property

Identifies the VerticalOffset dependency property.
public static DependencyProperty VerticalOffsetProperty
Résultat DependencyProperty

VerticalScrollBarVisibilityProperty public_oe static_oe property

Identifies the VerticalScrollBarVisibility dependency property.
public static DependencyProperty VerticalScrollBarVisibilityProperty
Résultat DependencyProperty

ViewportHeightProperty public_oe static_oe property

Identifies the ViewportHeight dependency property.
public static DependencyProperty ViewportHeightProperty
Résultat DependencyProperty

ViewportWidthProperty public_oe static_oe property

Identifies the ViewportWidth dependency property.
public static DependencyProperty ViewportWidthProperty
Résultat DependencyProperty