Свойство | Type | Description | |
---|---|---|---|
AllowDragOutOfViewProperty | |||
AllowDraggingProperty | |||
CanBeDraggedProperty |
Méthode | Description | |
---|---|---|
BringToFront ( UIElement element ) : void |
Assigns the element a z-index which will ensure that it is in front of every other element in the Canvas. The z-index of every element whose z-index is between the element's old and new z-index will have its z-index decremented by one.
|
|
FindCanvasChild ( |
Walks up the visual tree starting with the specified DependencyObject, looking for a UIElement which is a child of the Canvas. If a suitable element is not found, null is returned. If the 'depObj' object is a UIElement in the Canvas's Children collection, it will be returned.
|
|
GetCanBeDragged ( UIElement uiElement ) : bool |
Returns true if the specified UIElement is allowed to be dragged, else false.
|
|
SendToBack ( UIElement element ) : void |
Assigns the element a z-index which will ensure that it is behind every other element in the Canvas. The z-index of every element whose z-index is between the element's old and new z-index will have its z-index incremented by one.
|
|
SetCanBeDragged ( UIElement uiElement, bool value ) : void |
Sets the CanBeDragged attached property for the specified UIElement.
|
Méthode | Description | |
---|---|---|
OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void |
Overrides base implementation to support element dragging.
|
|
OnPreviewMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void |
Release item being dragged once the mouse is up
|
|
OnPreviewMouseMove ( System.Windows.Input.MouseEventArgs e ) : void |
Overrides base implementation to support element dragging.
|
|
OnPreviewMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void |
Overrides base implementation to support element dragging.
|
Méthode | Description | |
---|---|---|
CalculateDragElementRect ( double newHorizOffset, double newVertOffset ) : |
Returns a Rect which describes the bounds of the element being dragged.
|
|
DragCanvas ( ) : System | ||
ResolveOffset ( double side1, double side2, bool &useSide1 ) : double |
Determines one component of a UIElement's location within a Canvas (either the horizontal or vertical offset).
|
|
UpdateZOrder ( UIElement element, bool bringToFront ) : void |
Helper method used by the BringToFront and SendToBack methods.
|
public BringToFront ( UIElement element ) : void | ||
element | UIElement | /// The element to be sent to the front of the z-order. /// |
Résultat | void |
public FindCanvasChild ( |
||
depObj | /// A DependencyObject from which the search begins. /// | |
Résultat | UIElement |
public static GetCanBeDragged ( UIElement uiElement ) : bool | ||
uiElement | UIElement | The UIElement to check for dragging permission. |
Résultat | bool |
protected OnPreviewMouseLeftButtonDown ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | |
Résultat | void |
protected OnPreviewMouseLeftButtonUp ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | |
Résultat | void |
protected OnPreviewMouseMove ( System.Windows.Input.MouseEventArgs e ) : void | ||
e | System.Windows.Input.MouseEventArgs | |
Résultat | void |
protected OnPreviewMouseUp ( System.Windows.Input.MouseButtonEventArgs e ) : void | ||
e | System.Windows.Input.MouseButtonEventArgs | |
Résultat | void |
public SendToBack ( UIElement element ) : void | ||
element | UIElement | /// The element to be sent to the back of the z-order. /// |
Résultat | void |
public static SetCanBeDragged ( UIElement uiElement, bool value ) : void | ||
uiElement | UIElement | The UIElement to set the property for. |
value | bool | Pass true if the element can be dragged, else false. |
Résultat | void |
public static DependencyProperty,System.Windows AllowDragOutOfViewProperty | ||
Résultat |
public static DependencyProperty,System.Windows AllowDraggingProperty | ||
Résultat |