Style<T>
A named, reusable set of property setters for views of type
T.| Type parameter | Summary |
|---|---|
View T | The view type the style configures. |
Constructors
Creates a style from a block of setters over the typed view.
| Parameter | Summary |
|---|---|
Action<T> setters | The block of setters to run against the view. |
Creates a style that runs basedOn first, then its own setters over the top.
| Parameter | Summary |
|---|---|
IStyle basedOn | The base style to inherit from. |
Action<T> setters | The block of setters to run over the base style. |
Exceptions
ArgumentException: Thrown if the base style target type is incompatible withT.
Properties
TargetType
The view type the style configures.
Type: Type
Methods
Apply
Runs the style's setters against view.
| Parameter | Summary |
|---|---|
View view | The view instance to configure. |