New to Telerik UI for WPFStart a free 30-day trial

Represents an element that has style properties in the document model.

Definition

Properties

Gets or sets the style of the element.

C#
StyleDefinition Style { get; set; }
Property Value:

The style applied to the element.

Gets or sets the style name for the element.

C#
string StyleName { get; set; }
Property Value:

The name of the style applied to the element.

Methods

Invoked when a style is removed from the document.

C#
void OnStyleRemovedFromDocument()

Occurs when the style name of the element changes.

C#
void StyleNameChanged()

Occurs when a style property changes on the element.

C#
void StylePropertyChanged(object sender, StylePropertyChangeEventArgs args)
Parameters:senderobject

The source of the event.

argsStylePropertyChangeEventArgs

An instance of StylePropertyChangeEventArgs that contains the event data.

Occurs when the style property of an element is changing.

C#
void StylePropertyChanging(object sender, StylePropertyChangeEventArgs args)
Parameters:senderobject

The source of the event.

argsStylePropertyChangeEventArgs

The event data containing information about the style property change.