Class SplitterAdorner
SplitterAdorner class.
Inheritance
Namespace: Syncfusion.Windows.Tools.Controls
Assembly: Syncfusion.Tools.Wpf.dll
Syntax
public class SplitterAdorner : Adorner
Remarks
In docking SplitterAdorner is used when you resize some dock window. When you start resizing, you can see horizontal or vertical line appear when dragging any side of the dock window. This line is splitter. You can override style or template of the Splitter.
Examples
This example shows how to override the template of the SplitterAdorner in XAML.
<ControlTemplate x:Key="SplitterAdornerTemplate">
<StackPanel x:Name="stPanel" Orientation="Horizontal">
<Border MinWidth="4" MinHeight="4">
<Border.Background>
<SolidColorBrush Color="Gray" Opacity="0.6" />
</Border.Background>
</Border>
</StackPanel>
<ControlTemplate.Triggers>
<Trigger Property="Syncfusion:SplitterAdorner.Orientation" Value="Horizontal">
<Setter TargetName="stPanel" Property="LayoutTransform">
<Setter.Value>
<RotateTransform Angle="-90"/>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
Constructors
SplitterAdorner(UIElement)
Initializes a new instance of the SplitterAdorner class.
Declaration
public SplitterAdorner(UIElement splitter)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.UIElement | splitter | The splitter. |
Fields
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
LeftLimitReached
Gets or sets a value indicating whether the value of the LeftLimitReached dependency property.
Declaration
protected bool LeftLimitReached { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Orientation
Gets or sets adorner orientation.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.Orientation | The orientation. |
Examples
To set Orientation property please see AdornerTemplate property example.
See Also
RightLimitReached
Gets or sets a value indicating whether the value of the RightLimitReached dependency property.
Declaration
protected bool RightLimitReached { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
SplitterSize
Gets splitter render size.
Declaration
public Size SplitterSize { get; }
Property Value
Type |
---|
System.Windows.Size |
Examples
This example shows how to use SplitterSize property in XAML.
<Style x:Key="SplitterBaseStyle" TargetType="{x:Type Syncfusion:Splitter}">
<Setter Property="MinWidth" Value="{Binding Path=SplitterSize
, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Syncfusion:DockingManager}}}"/>
<Setter Property="MinHeight" Value="{Binding Path=SplitterSize
, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Syncfusion:DockingManager}}}"/>
</Style>
See Also
VisualChildrenCount
Gets visual children count, always 1.
Declaration
protected override int VisualChildrenCount { get; }
Property Value
Type |
---|
System.Int32 |
Methods
ArrangeOverride(Size)
Arranges inner control to the full size.
Declaration
protected override Size ArrangeOverride(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | finalSize | The final size of the window object and its child elements. |
Returns
Type | Description |
---|---|
System.Windows.Size | A Size that is the size of the window. |
ChangeOffsets(Double, Double)
Changes offsets of the adorner.
Declaration
protected virtual bool ChangeOffsets(double xOffset, double yOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Double | xOffset | New x-offset of the adorner. |
System.Double | yOffset | New y-offset of the adorner. |
Returns
Type | Description |
---|---|
System.Boolean | Specifies whether some position has been changed. |
GetDesiredTransform(GeneralTransform)
Adds translate transformation to the adorner.
Declaration
public override GeneralTransform GetDesiredTransform(GeneralTransform transform)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.GeneralTransform | transform | The transform that is currently applied to the adorned element. |
Returns
Type | Description |
---|---|
System.Windows.Media.GeneralTransform | A transform to apply to the adorner. |
GetVisualChild(Int32)
Gets visual by index.
Declaration
protected override Visual GetVisualChild(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the visual object. |
Returns
Type | Description |
---|---|
System.Windows.Media.Visual | The child in the VisualCollection at the specified index value. |
MeasureOverride(Size)
Measures content.
Declaration
protected override Size MeasureOverride(Size constraint)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | constraint | The size that the image should not exceed. |
Returns
Type | Description |
---|---|
System.Windows.Size | The image's desired size. |
OnLeftLimitReachedChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises LeftLimitReachedChanged event.
Declaration
protected virtual void OnLeftLimitReachedChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property changes details, such as old value and new value. |
OnRightLimitReachedChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises RightLimitReachedChanged event.
Declaration
protected virtual void OnRightLimitReachedChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property changes details, such as old value and new value. |
Events
LeftLimitReachedChanged
Event that is raised when LeftLimitReached property is changed.
Declaration
public event PropertyChangedCallback LeftLimitReachedChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
RightLimitReachedChanged
Event that is raised when RightLimitReached property is changed.
Declaration
public event PropertyChangedCallback RightLimitReachedChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |