C# 클래스 SpiderTreeControl.Diagram.FrictionScrollViewer

Provides a scrollable ScrollViewer which allows user to apply friction, which in turn animates the ScrollViewer position, giving it the appearance of sliding into position
상속: System.Windows.Controls.ScrollViewer
파일 보기 프로젝트 열기: hansuky/Yuhan

공개 프로퍼티들

프로퍼티 타입 설명
FrictionProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
ScrollToCenterTarget ( Point target ) : void

보호된 메소드들

메소드 설명
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void

Get position and CaptureMouse

OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void

If IsMouseCaptured scroll to correct position. Where position is updated by animation timer

OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

Release MouseCapture if its captured

비공개 메소드들

메소드 설명
FrictionScrollViewer ( ) : System

Overrides metadata

HandleWorldTimerTick ( object sender, EventArgs e ) : void

Animation timer tick, used to move the scrollviewer incrementally to the desired position. This also uses the friction setting when determining how much to move the scrollviewer

메소드 상세

OnMouseDown() 보호된 메소드

Get position and CaptureMouse
protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
리턴 void

OnMouseMove() 보호된 메소드

If IsMouseCaptured scroll to correct position. Where position is updated by animation timer
protected OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
리턴 void

OnMouseUp() 보호된 메소드

Release MouseCapture if its captured
protected OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
리턴 void

ScrollToCenterTarget() 공개 메소드

public ScrollToCenterTarget ( Point target ) : void
target Point
리턴 void

프로퍼티 상세

FrictionProperty 공개적으로 정적으로 프로퍼티

public static DependencyProperty,System.Windows FrictionProperty
리턴 System.Windows.DependencyProperty