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

Adorner that displays the margin of a control in a Grid.
Inheritance: System.Windows.Controls.Control
ファイルを表示 Open project: icsharpcode/WpfDesigner Class Usage Examples

Public Properties

Property Type Description
HandleLengthOffset double
HandleLengthProperty System.Windows.DependencyProperty

Public Methods

Method Description
DecideVisiblity ( double handleLength ) : void

Decides the visibllity of Handle or stub,whichever is set and hides the line-endarrow if the control is near the Grid or goes out of it.

MarginHandle ( DesignItem adornedControlItem, AdornerPanel adornerPanel, HandleOrientation orientation ) : System
OnApplyTemplate ( ) : void
OnHandleLengthChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Decides the visiblity of handle/stub when HandleLength changes

Protected Methods

Method Description
OnMouseEnter ( System e ) : void
OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

Private Methods

Method Description
BindAndPlaceHandle ( ) : void

Binds the HandleLength to the margin and place the handles.

MarginHandle ( ) : System
OnPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

DecideVisiblity() public method

Decides the visibllity of Handle or stub,whichever is set and hides the line-endarrow if the control is near the Grid or goes out of it.
public DecideVisiblity ( double handleLength ) : void
handleLength double
return void

MarginHandle() public method

public MarginHandle ( DesignItem adornedControlItem, AdornerPanel adornerPanel, HandleOrientation orientation ) : System
adornedControlItem DesignItem
adornerPanel AdornerPanel
orientation HandleOrientation
return System

OnApplyTemplate() public method

public OnApplyTemplate ( ) : void
return void

OnHandleLengthChanged() public static method

Decides the visiblity of handle/stub when HandleLength changes
public static OnHandleLengthChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
d System.Windows.DependencyObject
e System.Windows.DependencyPropertyChangedEventArgs
return void

OnMouseEnter() protected method

protected OnMouseEnter ( System e ) : void
e System
return void

OnMouseLeave() protected method

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

Property Details

HandleLengthOffset public_oe static_oe property

Places the Handle with a certain offset so the Handle does not interfere with selection outline.
public static double HandleLengthOffset
return double

HandleLengthProperty public_oe static_oe property

Dependency property for HandleLength.
public static DependencyProperty,System.Windows HandleLengthProperty
return System.Windows.DependencyProperty