C# 클래스 DevZest.Windows.SplitContainer

Represents a control consisting of two resizable UIElement objects.

You can add two UIElement children to the two resizable areas, and you can add other SplitContainer controls to existing SplitContainer to create many resizable display areas.

Use the SplitContainer control to divide the display area of a container (such as a Window) and allow the user to resize UI elements that are added to the SplitContainer panels. When the user passes the mouse pointer over the splitter, the cursor changes to indicate that the controls inside the SplitContainer control can be resized.

Use Child1 and Child2 to specify two resizable children. Use Orientation to specify horizontal orientation. The default orientation of the SplitContainer is vertical.

Use SplitterDistance and IsSplitterTopLeft to specify where the splitter starts. Double click the splitter auto sizes Child1 or Child2, depending on the value of IsSplitterTopLeft. Use ShowsPreview to indicate whether SplitterDistance updated as the user drags the splitter. Use DragIncrement and KeyboardIncrement to specify how far the splitter moves at a time. The default for DragIncrement is 1 and KeyboardIncrement is 10.

Use Child1MinSize and Child2MinSize to specify how close the splitter bar can be moved to the outside edge of a SplitContainer. The default value is 20.

Use SplitterWidth, SplitterBackground, PreviewBackground, SplitterTemplate, IsPreviewVisible, PreviewOffsetX and PreviewOffsetY properties to customize the splitter and drag preview.

상속: System.Windows.FrameworkElement
파일 보기 프로젝트 열기: TNOCS/csTouch 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
BackgroundProperty System.Windows.DependencyProperty
Child1MinSizeProperty System.Windows.DependencyProperty
Child1Property System.Windows.DependencyProperty
Child2MinSizeProperty System.Windows.DependencyProperty
Child2Property System.Windows.DependencyProperty
DragIncrementProperty System.Windows.DependencyProperty
IsPreviewVisibleProperty System.Windows.DependencyProperty
IsSplitterTopLeftProperty System.Windows.DependencyProperty
KeyboardIncrementProperty System.Windows.DependencyProperty
OrientationProperty System.Windows.DependencyProperty
PreviewBackgroundProperty System.Windows.DependencyProperty
PreviewOffsetXProperty System.Windows.DependencyProperty
PreviewOffsetYProperty System.Windows.DependencyProperty
PreviewOpacityProperty System.Windows.DependencyProperty
ShowsPreviewProperty System.Windows.DependencyProperty
SplitterBackgroundProperty System.Windows.DependencyProperty
SplitterDistanceProperty System.Windows.DependencyProperty
SplitterTemplateProperty System.Windows.DependencyProperty
SplitterWidthProperty System.Windows.DependencyProperty

Private Properties

프로퍼티 타입 설명
CalculateLengthes System.Windows.Size
GetChildrenLengthes void
GetMinMaxDelta void
GetOffset Point
GetRects System.Windows.Size
KeyboardMoveSplitter bool
MoveSplitter void
MoveSplitter void
OnChildChanged void
OnChildChanged void
OnSplitterTemplateChanged void
SetSplitterTemplate void
SplitContainer System
ValidateChildMinSize bool
ValidateIncrement bool
ValidateOrientation bool

보호된 메소드들

메소드 설명
ArrangeOverride ( Size finalSize ) : Size
GetVisualChild ( int index ) : Visual
MeasureOverride ( Size availableSize ) : Size
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

비공개 메소드들

메소드 설명
CalculateLengthes ( Size availableSize, double &child1Length, double &splitterLength, double &child2Length ) : Size
GetChildrenLengthes ( double &child1Length, double &child2Length ) : void
GetMinMaxDelta ( double &minDelta, double &maxDelta ) : void
GetOffset ( double horizontalChange, double verticalChange, double increment ) : Point
GetRects ( Size availableSize, Rect &child1Rect, Rect &splitterRect, Rect &child2Rect ) : Size
KeyboardMoveSplitter ( double deltaX, double deltaY ) : bool
MoveSplitter ( SplitterDistance value ) : void
MoveSplitter ( double offsetX, double offsetY ) : void
OnChildChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnChildChanged ( UIElement oldChild, UIElement newChild ) : void
OnSplitterTemplateChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetSplitterTemplate ( System.Windows.DataTemplate splitterTemplate ) : void
SplitContainer ( ) : System
ValidateChildMinSize ( object o ) : bool
ValidateIncrement ( object o ) : bool
ValidateOrientation ( object o ) : bool

메소드 상세

ArrangeOverride() 보호된 메소드

protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
리턴 System.Windows.Size

GetVisualChild() 보호된 메소드

protected GetVisualChild ( int index ) : Visual
index int
리턴 Visual

MeasureOverride() 보호된 메소드

protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
리턴 System.Windows.Size

OnKeyDown() 보호된 메소드

protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void
e System.Windows.Input.KeyEventArgs
리턴 void

OnMouseLeftButtonDown() 보호된 메소드

protected OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
리턴 void

OnRender() 보호된 메소드

protected OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void
drawingContext System.Windows.Media.DrawingContext
리턴 void

프로퍼티 상세

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

Identifies the Background dependency property.
public static DependencyProperty,System.Windows BackgroundProperty
리턴 System.Windows.DependencyProperty

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

Identifies the Child1MinSize dependency property.
public static DependencyProperty,System.Windows Child1MinSizeProperty
리턴 System.Windows.DependencyProperty

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

Identifies the Child1 dependency property.
public static DependencyProperty,System.Windows Child1Property
리턴 System.Windows.DependencyProperty

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

Identifies the Child2MinSize dependency property.
public static DependencyProperty,System.Windows Child2MinSizeProperty
리턴 System.Windows.DependencyProperty

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

Identifies the Child2 dependency property.
public static DependencyProperty,System.Windows Child2Property
리턴 System.Windows.DependencyProperty

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

Identifies the DragIncrement dependency property.
public static DependencyProperty,System.Windows DragIncrementProperty
리턴 System.Windows.DependencyProperty

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

Identifies the IsPreviewVisible dependency property.
public static DependencyProperty,System.Windows IsPreviewVisibleProperty
리턴 System.Windows.DependencyProperty

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

Identifies the IsSplitterTopLeft dependency property.
public static DependencyProperty,System.Windows IsSplitterTopLeftProperty
리턴 System.Windows.DependencyProperty

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

Identifies the KeyboardIncrement dependency property.
public static DependencyProperty,System.Windows KeyboardIncrementProperty
리턴 System.Windows.DependencyProperty

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

Identifies the Orientation dependency property.
public static DependencyProperty,System.Windows OrientationProperty
리턴 System.Windows.DependencyProperty

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

Identifies the PreviewBackground dependency property.
public static DependencyProperty,System.Windows PreviewBackgroundProperty
리턴 System.Windows.DependencyProperty

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

Identifies the PreviewOffsetX dependency property.
public static DependencyProperty,System.Windows PreviewOffsetXProperty
리턴 System.Windows.DependencyProperty

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

Identifies the PreviewOffsetY dependency property.
public static DependencyProperty,System.Windows PreviewOffsetYProperty
리턴 System.Windows.DependencyProperty

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

Identifies the PreviewOpacity dependency property.
public static DependencyProperty,System.Windows PreviewOpacityProperty
리턴 System.Windows.DependencyProperty

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

Identifies the ShowsPreview dependency property.
public static DependencyProperty,System.Windows ShowsPreviewProperty
리턴 System.Windows.DependencyProperty

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

Identifies the SplitterBackground dependency property.
public static DependencyProperty,System.Windows SplitterBackgroundProperty
리턴 System.Windows.DependencyProperty

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

Identifies the SplitterDistance dependency property.
public static DependencyProperty,System.Windows SplitterDistanceProperty
리턴 System.Windows.DependencyProperty

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

Identifies the SplitterTemplate dependency property.
public static DependencyProperty,System.Windows SplitterTemplateProperty
리턴 System.Windows.DependencyProperty

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

Identifies the SplitterWidth dependency property.
public static DependencyProperty,System.Windows SplitterWidthProperty
리턴 System.Windows.DependencyProperty