Share via


XamlControlsResources.UseCompactResources Propriété

Définition

Obtient ou définit si les contrôles et les ressources sont rendus dans une disposition plus dense.

Cette documentation s’applique à WinUI 2 pour UWP (pour WinUI dans le SDK d'application Windows, consultez les espaces de noms SDK d'application Windows).

public:
 property bool UseCompactResources { bool get(); void set(bool value); };
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [Windows.Foundation.Metadata.Experimental]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [get: Windows.Foundation.Metadata.Experimental]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
/// [set: Windows.Foundation.Metadata.Experimental]
bool UseCompactResources();

void UseCompactResources(bool value);
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")]
[Windows.Foundation.Metadata.Experimental]
public bool UseCompactResources { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] [Windows.Foundation.Metadata.Experimental] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="false")] [Windows.Foundation.Metadata.Experimental] set; }
Public Property UseCompactResources As Boolean

Valeur de propriété

Boolean

bool

True, si les ressources compactes sont activées. Sinon, False. La valeur par défaut est false.

Attributs
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute ExperimentalAttribute

S’applique à