ICommandBarElement ICommandBarElement ICommandBarElement ICommandBarElement Interface


Defines the compact view for command bar elements.

public : interface ICommandBarElementpublic interface ICommandBarElementPublic Interface ICommandBarElement// This API is not available in Javascript.
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)


IsCompact IsCompact IsCompact IsCompact

Gets or sets a value that indicates whether the element is shown with no label and reduced padding.

public : PlatForm::Boolean IsCompact { get; set; }public bool IsCompact { get; set; }Public ReadWrite Property IsCompact As bool// This API is not available in Javascript.
PlatForm::Boolean bool bool bool

true if the element is shown in its compact state; otherwise, false. The default is false.