Export (0) Print
Expand All

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)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

'Declaration
Public Property PreviewStyle As Style
<object>
  <object.PreviewStyle>
    <Style .../>
  </object.PreviewStyle>
</object>
<object PreviewStyle="{ResourceExtension StyleResourceKey}"/>

XAML Values

ResourceExtension

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

StyleResourceKey

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

NoteNote

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

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.

Identifier field

PreviewStyleProperty

Metadata properties set to true

None

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 Styling and Templating.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft