WPF › Control Visual Sizer › ControlVisualResizerThemeResources
ControlVisualResizerThemeResources
class.NET 6 / 8 / 10.NET Framework 4.8Binarymission.WPF.Controls.Containers.SharedResources
The resource keys of the brushes ControlVisualResizer is drawn with, so that an
application can recolour every resizer at once from its own resources.
public static class ControlVisualResizerThemeResources
Remarks
Define a brush under one of these keys in App.xaml (or any resource dictionary
in scope) and it replaces the built-in one. A brush set on a resizer itself, such as
ControlVisualResizer.GripperBrush, wins over the resource.
Examples
<Application.Resources>
<SolidColorBrush x:Key="{x:Static res:ControlVisualResizerThemeResources.ResizeGripTopElementBrushKey}"
Color="#2B579A" />
</Application.Resources>with xmlns:res="clr-namespace:Binarymission.WPF.Controls.Containers.SharedResources;assembly=Binarymission.WPF.Controls.Containers.ControlVisualReSizer".
Members at a glance
| Properties | |
|---|---|
ResizeGripBottomElementBrushKey | Gets the key of a second grip brush, for a grip style of your own that draws its dots in two colours. |
ResizeGripTopElementBrushKey | Gets the key of the brush the dots of the resize grip are drawn with. |
Properties
ResizeGripBottomElementBrushKey static
public static ComponentResourceKey ResizeGripBottomElementBrushKey
Gets the key of a second grip brush, for a grip style of your own that draws its dots in two colours.
- Value
- A key whose built-in brush is grey. The default grip style does not use it.
ResizeGripTopElementBrushKey static
public static ComponentResourceKey ResizeGripTopElementBrushKey
Gets the key of the brush the dots of the resize grip are drawn with.
- Value
- A key whose built-in brush is grey, or the skin's secondary text colour while a
Binarymission skin is in force. The default style of
ControlVisualResizersetsControlVisualResizer.GripperBrushfrom it.