PreviewStyle Property

GridSplitter.PreviewStyle Property


Gets or sets the style that customizes the appearance, effects, or other style characteristics for the GridSplitter control preview indicator that is displayed when the ShowsPreview property is set to true.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Style PreviewStyle { get; set; }

Property Value

Type: System.Windows.Style

Returns the Style for the preview indicator that shows the potential change in Grid dimensions as you move the GridSplitter control. The default is the style that the current theme supplies.

When you set styles, there are some restrictions. For more information, see Styling and Templating.

<object PreviewStyle="{ResourceExtension StyleResourceKey}"/>


One of the following: StaticResource or DynamicResource. See XAML Resources.


The key that identifies the style being requested. The key refers to an existing resource in a ResourceDictionary.


Property element syntax is technically possible, but not recommended. See Inline Styles and Templates. A binding reference using or Binding is also possible, but uncommon.

Identifier field


Metadata properties set to true


A preview of changes to row or column boundaries is displayed while the user drags the GridSplitter control, and the ShowsPreview property is set to true. The column and row boundaries are set when the user releases the mouse button.

.NET Framework
Available since 3.0
Available since 2.0
Return to top
© 2015 Microsoft