편집

다음을 통해 공유


GridSplitter.PreviewStyle Property

Definition

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.

public:
 property System::Windows::Style ^ PreviewStyle { System::Windows::Style ^ get(); void set(System::Windows::Style ^ value); };
public System.Windows.Style PreviewStyle { get; set; }
member this.PreviewStyle : System.Windows.Style with get, set
Public Property PreviewStyle As Style

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 is the style that the current theme supplies.

Remarks

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

XAML Attribute Usage

<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.

Note

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.

Dependency Property Information

Item Value
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.

Applies to