Condividi tramite


Expander.ExpandDirection Proprietà

Definizione

Ottiene o imposta un valore che indica la direzione in cui si espande l'area del contenuto.

public:
 property ExpandDirection ExpandDirection { ExpandDirection get(); void set(ExpandDirection value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")]
ExpandDirection ExpandDirection();

void ExpandDirection(ExpandDirection value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")]
ExpandDirection ExpandDirection();

void ExpandDirection(ExpandDirection value);
public ExpandDirection ExpandDirection { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")]
public ExpandDirection ExpandDirection { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallback(enable=true)] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="winrt::ExpandDirection::Down")] set; }
var expandDirection = expander.expandDirection;
expander.expandDirection = expandDirection;
Public Property ExpandDirection As ExpandDirection

Valore della proprietà

Valore dell'enumerazione che indica la direzione in cui si espande l'area del contenuto. Il valore predefinito è Down.

Attributi
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyChangedCallbackAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Esempio

Suggerimento

Per altre informazioni, linee guida per la progettazione e esempi di codice, vedere Espandi.

L'app WinUI 3 Gallery include esempi interattivi della maggior parte dei controlli, delle funzionalità e delle funzionalità winUI 3. Ottenere l'app da Microsoft Store o ottenere il codice sorgente in GitHub.

Commenti

Il controllo Expander può espandere Up o Down.

Si applica a