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)
XML Namespace:

public Style PreviewStyle { get; set; }
/** @property */
public Style get_PreviewStyle ()

/** @property */
public void set_PreviewStyle (Style value)

public function get PreviewStyle () : Style

public function set PreviewStyle (value : Style)

    <Style .../>
<object PreviewStyle="{ResourceExtension StyleResourceKey}"/>
 ResourceExtension  One of the following: StaticResource, or DynamicResource. See Resources Overview.  StyleResourceKey  The key that identifies the style being requested. The key refers to an existing resource in a ResourceDictionary. 

Property Value

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

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.

When you set styles, there are some restrictions. For more information, see Styles Overview.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions