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

Adorner that displays the margin of a control in a Grid.
Inheritance: System.Windows.Controls.Control
Afficher le fichier Open project: icsharpcode/WpfDesigner Class Usage Examples

Méthodes publiques

Свойство Type Description
HandleLengthOffset double
HandleLengthProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnMouseEnter ( System e ) : void
OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void

Private Methods

Méthode 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 méthode

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
Résultat void

MarginHandle() public méthode

public MarginHandle ( DesignItem adornedControlItem, AdornerPanel adornerPanel, HandleOrientation orientation ) : System
adornedControlItem DesignItem
adornerPanel AdornerPanel
orientation HandleOrientation
Résultat System

OnApplyTemplate() public méthode

public OnApplyTemplate ( ) : void
Résultat void

OnHandleLengthChanged() public static méthode

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
Résultat void

OnMouseEnter() protected méthode

protected OnMouseEnter ( System e ) : void
e System
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( System.Windows.Input.MouseEventArgs e ) : void
e System.Windows.Input.MouseEventArgs
Résultat 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
Résultat double

HandleLengthProperty public_oe static_oe property

Dependency property for HandleLength.
public static DependencyProperty,System.Windows HandleLengthProperty
Résultat System.Windows.DependencyProperty