C# 클래스 System.Windows.Controls.ScrollViewer

상속: ContentControl
파일 보기 프로젝트 열기: shana/moon 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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