StackPanelItemVariantBehavior Enum
Specifies how child controls of a StackPanel are assigned a variant based on the current value of the panel's
VariantSize property.
public enum StackPanelItemVariantBehavior
The StackPanel is intended to be used directly as a child of a Group control.
In this scenario, the parent Group automatically sets the VariantSize property
to the group's variant size, and therefore enables the behavior specified by this enumeration.
Fields
| Name |
Description |
| AlwaysLarge |
Child controls always use a Large variant size
no matter what the VariantSize of the StackPanel is.
This option is the same as not using a StackPanel to encapsulate the child controls.
|
| AlwaysMedium |
Child controls always use a Medium variant size
no matter what the VariantSize of the StackPanel is.
|
| AlwaysSmall |
Child controls always use a Small variant size
no matter what the VariantSize of the StackPanel is.
|
| Default |
Child controls use a Large variant size
when the VariantSize of the StackPanel is Large.
They change to a Medium variant size
when the VariantSize of the StackPanel is Medium.
They change to a Small variant size
when the VariantSize of the StackPanel is Small.
This option provides the largest number of variants for child controls.
|
| LargeThenMediumWhenMedium |
Child controls use a Large variant size
when the VariantSize of the StackPanel is Large.
They change to a Medium variant size
when the VariantSize of the StackPanel is Medium or Small.
|
| LargeThenMediumWhenSmall |
Child controls use a Large variant size
when the VariantSize of the StackPanel is Large or Medium.
They change to a Medium variant size
when the VariantSize of the StackPanel is Small.
|
| LargeThenSmallWhenMedium |
Child controls use a Large variant size
when the VariantSize of the StackPanel is Large.
They change to a Small variant size
when the VariantSize of the StackPanel is Medium or Small.
|
| LargeThenSmallWhenSmall |
Child controls use a Large variant size
when the VariantSize of the StackPanel is Large or Medium.
They change to a Small variant size
when the VariantSize of the StackPanel is Small.
|
| MediumThenSmallWhenMedium |
Child controls use a Medium variant size
when the VariantSize of the StackPanel is Large.
They change to a Small variant size
when the VariantSize of the StackPanel is Medium or Small.
|
| MediumThenSmallWhenSmall |
Child controls use a Medium variant size
when the VariantSize of the StackPanel is Large or Medium.
They change to a Small variant size
when the VariantSize of the StackPanel is Small.
|