StyleSheet class
이 콘텐츠는 아직 번역되지 않았습니다.
Registry of named styles and type-based style rules, scoped to the FrameworkElement it is attached to.
Guide: C# Markup reference: Misc
public sealed class StyleSheetPublic Members
Section titled “Public Members”| name | description |
|---|---|
| StyleSheet() | The default constructor. |
| IsFrozen { get; } | Gets whether this sheet has been frozen for live style lookup. |
| Define(…) | Defines a named style through a factory that is invoked on first lookup. |
| Define<T>(…) | Defines a type-based style rule that descendant controls of type T without an explicit StyleName receive. (2 methods) |
| Freeze() | Freezes this sheet for live use, validating and snapshotting the registered type styles and the already-materialized named styles. |
| Get(…) | Gets a named style, or null if not found. |
| GetByType(…) | Gets the type rule style for the given control type, checking the exact type first and then its base types; null when none matches. |
Remarks
Section titled “Remarks”Attach to any element (typically a window) to provide styles for its descendant controls.
See Also
Section titled “See Also”- namespace Aprillz.MewUI