C# Class ICSharpCode.WpfDesign.Designer.Controls.GridRailAdorner

Adorner that displays the blue bar next to grids that can be used to create new rows/column.
Inheritance: System.Windows.FrameworkElement
ファイルを表示 Open project: icsharpcode/WpfDesigner Class Usage Examples

Public Methods

Method Description
GridRailAdorner ( DesignItem gridItem, AdornerPanel adornerPanel, Orientation orientation ) : System
SetGridLengthUnit ( GridUnitType unit ) : void
SetGridLengthUnit ( GridUnitType unit, DesignItem item, DependencyProperty property ) : void

Protected Methods

Method Description
OnMouseEnter ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
OnMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void
OnMouseMove ( System.Windows.Input.MouseEventArgs e ) : void
OnRender ( System.Windows.Media.DrawingContext drawingContext ) : void

Private Methods

Method Description
FixIndicesAfterSplit ( int splitIndex, DependencyProperty idxProperty, DependencyProperty spanProperty, double insertionPostion ) : void
GetNewGridLength ( GridUnitType unit, GridLength oldValue ) : GridLength
GridLengthToText ( GridLength len ) : string
GridRailAdorner ( ) : System
SplitLength ( GridLength oldLength, double insertionPosition, double oldActualValue, GridLength &newLength1, GridLength &newLength2 ) : void

Method Details

GridRailAdorner() public method

public GridRailAdorner ( DesignItem gridItem, AdornerPanel adornerPanel, Orientation orientation ) : System
gridItem DesignItem
adornerPanel AdornerPanel
orientation Orientation
return System

OnMouseEnter() protected method

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

OnMouseLeave() protected method

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

OnMouseLeftButtonDown() protected method

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

OnMouseMove() protected method

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

OnRender() protected method

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

SetGridLengthUnit() public method

public SetGridLengthUnit ( GridUnitType unit ) : void
unit GridUnitType
return void

SetGridLengthUnit() public method

public SetGridLengthUnit ( GridUnitType unit, DesignItem item, DependencyProperty property ) : void
unit GridUnitType
item DesignItem
property System.Windows.DependencyProperty
return void