Skip to content

FrameworkElementMarkupExtensions.StyleSheet<T> method

Sets a StyleSheet that provides named styles and type-based style rules for descendant controls.

public static T StyleSheet<T>(this T target, StyleSheet? value)
where T : FrameworkElement
parameter description
T Receiver type.
target Target FrameworkElement.
value Value assigned to StyleSheet.

The same element for chaining.

Sets: FrameworkElement.StyleSheet