StyleSheetExtensions.With method (1 of 2)
Defines a named style through a factory invoked on first lookup (Define) and returns the sheet for chaining.
public static StyleSheet With(this StyleSheet sheet, string name, Func<Style> factory)| parameter | description |
|---|---|
| sheet | Target style sheet. |
| name | Style name. |
| factory | Factory invoked on first lookup. |
Return Value
Section titled “Return Value”The style sheet for chaining.
See Also
Section titled “See Also”- class StyleSheet
- class Style
- class StyleSheetExtensions
- namespace Aprillz.MewUI.Controls
StyleSheetExtensions.With<T> method (2 of 2)
Section titled “StyleSheetExtensions.With<T> method (2 of 2)”Defines a type-based style rule (Define) and returns the sheet for chaining.
public static StyleSheet With<T>(this StyleSheet sheet, Style style) where T : Control| parameter | description |
|---|---|
| T | Target control type. |
| sheet | Target style sheet. |
| style | Style definition. |
Return Value
Section titled “Return Value”The style sheet for chaining.
See Also
Section titled “See Also”- class StyleSheet
- class Style
- class Control
- class StyleSheetExtensions
- namespace Aprillz.MewUI.Controls