Compartir a través de


NavigationView.CompactPaneLength Propiedad

Definición

Obtiene o establece el ancho del panel NavigationView en su modo de presentación compacto.

public:
 property double CompactPaneLength { double get(); void set(double value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
double CompactPaneLength();

void CompactPaneLength(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
double CompactPaneLength();

void CompactPaneLength(double value);
public double CompactPaneLength { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")]
public double CompactPaneLength { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="48.0")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="CoerceToGreaterThanZero")] set; }
var double = navigationView.compactPaneLength;
navigationView.compactPaneLength = double;
Public Property CompactPaneLength As Double
<NavigationView CompactPaneLength="double" .../>

Valor de propiedad

Double

double

Ancho del panel en su modo de visualización compacta. El valor predeterminado es 48 píxeles independientes del dispositivo (DIP).

Atributos
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallbackAttribute

Comentarios

Esta propiedad especifica el ancho del panel cuando DisplayMode es Compact e IsPaneOpen es false.

Se aplica a