HypernovaDesktop Components · docs
Binarymission
WPFControl Visual Sizer › ControlVisualResizer

ControlVisualResizer

class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Containers

A custom control that supports re-sizing of any control by user, at runtime.

public class ControlVisualResizer : ContentControl

Inherits from / implements: ContentControl

Members at a glance

DirectionGets or sets the direction aspect of the re-sizing.
DropShadowDepthGets or sets the drop shadow depth.
DropShadowOpacityGets or sets the drop shadow opacity.
EndResizeCommandGets the end-resize routed command.
GripperBrushGets or sets the gripper brush.
IsDropShadowEnabledGets or sets a value indicating whether this instance is drop shadow enabled.
IsGripperEnabledGets or sets a value indicating whether the gripper rendering is enabled.
IsGripperVisibleGets or sets a value indicating whether the gripper is set to visible state.
ResizerStyleGets or sets the style for the internal resizer grip instance.
StartResizeCommandGets the start-resize routed command.
UpdateSizeCommandGets the update-size routed command.
OnApplyTemplateWhen overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.
DirectionPropertyThe direction property
DropShadowDepthPropertyThe drop shadow depth property
DropShadowOpacityPropertyThe drop shadow opacity property
GripperBrushPropertyThe gripper brush property
IsDropShadowEnabledPropertyThe is drop shadow enabled property
IsGripperEnabledPropertyThe is gripper enabled property
IsGripperVisiblePropertyThe is gripper visible property
ResizerStylePropertyThe resizer style property

Properties

Direction

public Direction Direction

Gets or sets the direction aspect of the re-sizing.

Value. The direction.

DropShadowDepth

public double DropShadowDepth

Gets or sets the drop shadow depth.

Value. The drop shadow depth.

DropShadowOpacity

public double DropShadowOpacity

Gets or sets the drop shadow opacity.

Value. The drop shadow opacity.

EndResizeCommand

public static RoutedCommand EndResizeCommand

Gets the end-resize routed command.

Value. The end-resize routed command.

GripperBrush

public Brush GripperBrush

Gets or sets the gripper brush.

Value. The gripper brush.

IsDropShadowEnabled

public bool IsDropShadowEnabled

Gets or sets a value indicating whether this instance is drop shadow enabled.

Value. true if this instance is drop shadow enabled; otherwise, false .

IsGripperEnabled

public bool IsGripperEnabled

Gets or sets a value indicating whether the gripper rendering is enabled.

Value. true if this instance is gripper enabled; otherwise, false .

IsGripperVisible

public bool IsGripperVisible

Gets or sets a value indicating whether the gripper is set to visible state.

Value. true if this instance is gripper visible; otherwise, false .

ResizerStyle

public Style ResizerStyle

Gets or sets the style for the internal resizer grip instance.

Value. The resizer style.

StartResizeCommand

public static RoutedCommand StartResizeCommand

Gets the start-resize routed command.

Value. The start-resize routed command.

UpdateSizeCommand

public static RoutedCommand UpdateSizeCommand

Gets the update-size routed command.

Value. The update-size routed command.

Methods

OnApplyTemplate

public override void OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate.

Fields

DirectionProperty

public static readonly DependencyProperty DirectionProperty

The direction property

DropShadowDepthProperty

public static readonly DependencyProperty DropShadowDepthProperty = DependencyProperty.Register( "DropShadowDepth", typeof(double), typeof(ControlVisualResizer), new PropertyMetadata(default(double), (o, args)

The drop shadow depth property

DropShadowOpacityProperty

public static readonly DependencyProperty DropShadowOpacityProperty = DependencyProperty.Register( "DropShadowOpacity", typeof(double), typeof(ControlVisualResizer), new PropertyMetadata(default(double), (o, args)

The drop shadow opacity property

GripperBrushProperty

public static readonly DependencyProperty GripperBrushProperty

The gripper brush property

IsDropShadowEnabledProperty

public static readonly DependencyProperty IsDropShadowEnabledProperty = DependencyProperty.Register( "IsDropShadowEnabled", typeof(bool), typeof(ControlVisualResizer), new PropertyMetadata(default(bool), (o, args)

The is drop shadow enabled property

IsGripperEnabledProperty

public static readonly DependencyProperty IsGripperEnabledProperty

The is gripper enabled property

IsGripperVisibleProperty

public static readonly DependencyProperty IsGripperVisibleProperty

The is gripper visible property

ResizerStyleProperty

public static readonly DependencyProperty ResizerStyleProperty

The resizer style property