C# Class GitSharp.Demo.Controls.DockPanelSplitter

DockPanelSplitter is a splitter control for DockPanels. Add the DockPanelSplitter after the element you want to resize. Set the DockPanel.Dock to define which edge the splitter should work on.
Inheritance: System.Windows.Controls.Border
Show file Open project: henon/GitSharp.Demo

Public Properties

Property Type Description
ProportionalResizeProperty System.Windows.DependencyProperty

Public Methods

Method Description
DockPanelSplitter ( ) : System.Diagnostics
DockPanelSplitter_Loaded ( object sender, RoutedEventArgs e ) : void

Protected Methods

Method Description
OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void

Private Methods

Method Description
AdjustHeight ( double dy, Dock dock ) : double
AdjustWidth ( double dx, Dock dock ) : double
Parent_SizeChanged ( object sender, System.Windows.SizeChangedEventArgs e ) : void
SetTargetHeight ( double new_height ) : void
SetTargetWidth ( double new_width ) : void
UpdateTargetElement ( ) : void

Update the target element (the element the DockPanelSplitter works on)

Method Details

DockPanelSplitter() public method

public DockPanelSplitter ( ) : System.Diagnostics
return System.Diagnostics

DockPanelSplitter_Loaded() public method

public DockPanelSplitter_Loaded ( object sender, RoutedEventArgs e ) : void
sender object
e System.Windows.RoutedEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
e System.Windows.Input.MouseButtonEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
return void

OnMouseMove() protected method

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

OnMouseUp() protected method

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

Property Details

ProportionalResizeProperty public static property

public static DependencyProperty,System.Windows ProportionalResizeProperty
return System.Windows.DependencyProperty