WebUICommandBar
WebUICommandBar
WebUICommandBar
WebUICommandBar
Class
Definition
Represents a command bar.
public : sealed class WebUICommandBar : IWebUICommandBarpublic sealed class WebUICommandBar : IWebUICommandBarPublic NotInheritable Class WebUICommandBar Implements IWebUICommandBar// You can use this class in JavaScript.
- Attributes
| Device family |
Windows Mobile Extension SDK (introduced v10.0.10240.0)
|
| API contract |
Windows.UI.WebUI.Core.WebUICommandBarContract (introduced v1)
|
Remarks
Properties
BackgroundColor BackgroundColor BackgroundColor BackgroundColor
Gets or sets the background color of the command bar.
public : Color BackgroundColor { get; set; }public Color BackgroundColor { get; set; }Public ReadWrite Property BackgroundColor As Color// You can use this property in JavaScript.
ClosedDisplayMode ClosedDisplayMode ClosedDisplayMode ClosedDisplayMode
Gets or sets the closed display mode for the command bar.
public : WebUICommandBarClosedDisplayMode ClosedDisplayMode { get; set; }public WebUICommandBarClosedDisplayMode ClosedDisplayMode { get; set; }Public ReadWrite Property ClosedDisplayMode As WebUICommandBarClosedDisplayMode// You can use this property in JavaScript.
- Value
- WebUICommandBarClosedDisplayMode WebUICommandBarClosedDisplayMode WebUICommandBarClosedDisplayMode WebUICommandBarClosedDisplayMode
The closed display mode for the command bar.
ForegroundColor ForegroundColor ForegroundColor ForegroundColor
Gets or sets the foreground color of the command bar.
public : Color ForegroundColor { get; set; }public Color ForegroundColor { get; set; }Public ReadWrite Property ForegroundColor As Color// You can use this property in JavaScript.
IsOpen IsOpen IsOpen IsOpen
Gets or sets whether the command bar is open.
public : PlatForm::Boolean IsOpen { get; set; }public bool IsOpen { get; set; }Public ReadWrite Property IsOpen As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
true if the command bar is open; otherwise, false.
Opacity Opacity Opacity Opacity
Gets or sets the opacity level of the command bar.
public : double Opacity { get; set; }public double Opacity { get; set; }Public ReadWrite Property Opacity As double// You can use this property in JavaScript.
- Value
- double double double double
The opacity level of the command bar.
PrimaryCommands PrimaryCommands PrimaryCommands PrimaryCommands
Gets the primary commands on the command bar.
public : IObservableVector<IWebUICommandBarElement> PrimaryCommands { get; }public IObservableVector<IWebUICommandBarElement> PrimaryCommands { get; }Public ReadOnly Property PrimaryCommands As IObservableVector<IWebUICommandBarElement>// You can use this property in JavaScript.
- Value
- IObservableVector<IWebUICommandBarElement> IObservableVector<IWebUICommandBarElement> IObservableVector<IWebUICommandBarElement> IObservableVector<IWebUICommandBarElement>
The primary commands on the command bar.
SecondaryCommands SecondaryCommands SecondaryCommands SecondaryCommands
Gets the secondary commands on the command bar.
public : IObservableVector<IWebUICommandBarElement> SecondaryCommands { get; }public IObservableVector<IWebUICommandBarElement> SecondaryCommands { get; }Public ReadOnly Property SecondaryCommands As IObservableVector<IWebUICommandBarElement>// You can use this property in JavaScript.
- Value
- IObservableVector<IWebUICommandBarElement> IObservableVector<IWebUICommandBarElement> IObservableVector<IWebUICommandBarElement> IObservableVector<IWebUICommandBarElement>
The secondary commands on the command bar.
Visible Visible Visible Visible
Gets or sets whether the command bar is displayed.
public : PlatForm::Boolean Visible { get; set; }public bool Visible { get; set; }Public ReadWrite Property Visible As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
true if the command bar is visible; otherwise, false.
Methods
GetForCurrentView() GetForCurrentView() GetForCurrentView() GetForCurrentView()
Gets the command bar currently being presented.
public : static WebUICommandBar GetForCurrentView()public static WebUICommandBar GetForCurrentView()Public Static Function GetForCurrentView() As WebUICommandBar// You can use this method in JavaScript.
The command bar.
Events
MenuClosed MenuClosed MenuClosed MenuClosed
Occurs when a menu is closed.
public : event MenuClosedEventHandler MenuClosedpublic event MenuClosedEventHandler MenuClosedPublic Event MenuClosed// You can use this event in JavaScript.
MenuOpened MenuOpened MenuOpened MenuOpened
Occurs when a menu is opened.
public : event MenuOpenedEventHandler MenuOpenedpublic event MenuOpenedEventHandler MenuOpenedPublic Event MenuOpened// You can use this event in JavaScript.