Resizer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Resizer adds a resizing grip and behavior to any control.
public ref class Resizer : System::Windows::Controls::ContentControl
public class Resizer : System.Windows.Controls.ContentControl
type Resizer = class
inherit ContentControl
Public Class Resizer
Inherits ContentControl
- Inheritance
-
Resizer
Remarks
If a custom template is provided for this control, then the template MUST provide the following template parts:
PART_LeftGrip - A required template part which must be of type Thumb. The grip on the left. PART_RightGrip - A required template part which must be of type Thumb. The grip on the right.
Constructors
Resizer() |
Creates an instance of Resizer. |
Fields
DraggingTemplateProperty |
Identifies the DraggingTemplate dependency property. |
GripBrushProperty |
Identifies the GripBrush dependency property. |
GripLocationProperty |
Identifies the GripLocation dependency property. |
GripWidthProperty |
Identifies the GripWidth dependency property. |
ResizeWhileDraggingProperty |
Identifies the ResizeWhileDragging dependency property. |
ThumbGripLocationProperty |
Identifies the ThumbGripLocation dependency property. |
VisibleGripWidthProperty |
Identifies the VisibleGripWidth dependency property. |
Properties
DraggingTemplate |
Gets or sets the template used for the dragging indicator when ResizeWhileDragging is false. |
GripBrush |
Gets or sets the color of the resize grips. |
GripLocation |
Gets or sets a value of what grips. |
GripWidth |
Gets or sets the width of the grips. |
ResizeWhileDragging |
Gets or sets a value indicating if resizing occurs while dragging. |
VisibleGripWidth |
Gets or sets the visible width of the grips. |
Attached Properties
ThumbGripLocation |
Methods
GetThumbGripLocation(DependencyObject) |
Gets the location for a grip. |
OnApplyTemplate() |
Called when ApplyTemplate is called. |
OnDraggingTemplateChanged(PropertyChangedEventArgs<DataTemplate>) |
Called when DraggingTemplate property changes. |
OnGripBrushChanged(PropertyChangedEventArgs<Brush>) |
Called when GripBrush property changes. |
OnGripLocationChanged(PropertyChangedEventArgs<ResizeGripLocation>) |
Called when GripLocation property changes. |
OnGripWidthChanged(PropertyChangedEventArgs<Double>) |
Called when GripWidth property changes. |
OnResizeWhileDraggingChanged(PropertyChangedEventArgs<Boolean>) |
Called when ResizeWhileDragging property changes. |
OnVisibleGripWidthChanged(PropertyChangedEventArgs<Double>) |
Called when VisibleGripWidth property changes. |
SetThumbGripLocation(DependencyObject, ResizeGripLocation) |
Sets the location for a grip. |
Events
DraggingTemplateChanged |
Occurs when DraggingTemplate property changes. |
GripBrushChanged |
Occurs when GripBrush property changes. |
GripLocationChanged |
Occurs when GripLocation property changes. |
GripWidthChanged |
Occurs when GripWidth property changes. |
ResizeWhileDraggingChanged |
Occurs when ResizeWhileDragging property changes. |
VisibleGripWidthChanged |
Occurs when VisibleGripWidth property changes. |