ICommandBarElement ICommandBarElement ICommandBarElement ICommandBarElement Interface


Defines the compact view for command bar elements.

public : interface ICommandBarElement
struct winrt::Windows::UI::Xaml::Controls::ICommandBarElement
public interface ICommandBarElement
Public Interface ICommandBarElement
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; }
bool IsCompact(); void IsCompact(bool iscompact);
public bool IsCompact { get; set; }
Public ReadWrite Property IsCompact As bool
bool bool

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