Class GridSplitter
Represents a control that redistributes space between the rows of columns of a Grid control.
Inherited Members
Namespace: System.Windows.Controls
Assembly: OpenSilver.Controls.dll
Syntax
[TemplatePart(Name = "HorizontalTemplate", Type = typeof(FrameworkElement))]
[TemplatePart(Name = "VerticalTemplate", Type = typeof(FrameworkElement))]
[StyleTypedProperty(Property = "PreviewStyle", StyleTargetType = typeof(Control))]
public class GridSplitter : Control, IControl, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourceGridSplitter()
Initializes a new instance of the GridSplitter class.
Declaration
public GridSplitter()
Fields
| Improve this Doc View SourcePreviewStyleProperty
Identifies the PreviewStyle dependency property.
Declaration
public static readonly DependencyProperty PreviewStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty | An identifier for the PreviewStyle dependency property. |
ShowsPreviewProperty
Identifies the ShowsPreview dependency property.
Declaration
public static readonly DependencyProperty ShowsPreviewProperty
Field Value
Type | Description |
---|---|
DependencyProperty | An identifier for the ShowsPreview dependency property. |
Properties
| Improve this Doc View SourcePreviewStyle
Gets or sets the Style that is used for previewing changes.
Declaration
public Style PreviewStyle { get; set; }
Property Value
Type | Description |
---|---|
Style | The style that is used to preview changes. |
ShowsPreview
Gets or sets a value indicating whether the GridSplitter displays a preview.
Declaration
public bool ShowsPreview { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | True if a preview is displayed; otherwise, false. |
Methods
| Improve this Doc View SourceOnApplyTemplate()
Builds the visual tree for the GridSplitter control when a new template is applied.
Declaration
public override void OnApplyTemplate()
Overrides
| Improve this Doc View SourceOnCreateAutomationPeer()
Returns a GridSplitterAutomationPeer for use by the Silverlight automation infrastructure.
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
AutomationPeer | A GridSplitterAutomationPeer for the GridSplitter object. |