Windows Dev Center

AppBarToggleButton.Icon property

Gets or sets the graphic content of the app bar toggle button.

Syntax


public IconElement Icon { get; set; }


<AppBarToggleButton Icon="symbolName" .../>



<AppBarToggleButton>
    <AppBarToggleButton.Icon>
        iconElement
    </AppBarToggleButton.Icon>
</AppBarToggleButton>


XAML Values

symbolName

A named constant of the Symbol enumeration.

iconElement

A single object element that derives from IconElement and describes the graphic content of the button. The object element is typically one of these classes: SymbolIcon, FontIcon, or PathIcon.

Property value

Type: IconElement

The graphic content of the app bar toggle button.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls
Windows::UI::Xaml::Controls [C++]

Metadata

Windows.winmd

See also

AppBarToggleButton
Symbol
IconElement
SymbolIcon
FontIcon
PathIcon

 

 

Show:
© 2015 Microsoft