AppBar.Alignment Property

Gets or sets the AppBar alignment, relative to the parent FrameworkElement. This is a dependency property.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v20.1.dll

Declaration

public AppBarAlignment Alignment { get; set; }
Public Property Alignment As AppBarAlignment

Property Value

Type Description
DevExpress.Xpf.WindowsUI.AppBarAlignment

An DevExpress.Xpf.WindowsUI.AppBarAlignment enumeration value that specifies the AppBar alignment. The default value is Bottom.

Remarks

In XAML, you can declare the AppBar control as a child of a FrameworkElement. Use the Alignment property to specify the side of the parent FrameworkElement at which the AppBar appears. The AppBarAlignment type provides the Bottom, Top, Left and Right options.

If you create a Modern UI Style application using a NavigationPage, you can display the AppBar at the top or bottom of this page with the help of the NavigationPage.TopAppBar and/or NavigationPage.BottomAppBar properties. Do not use the Alignment property for alignment purposes in this case.

To specify alignment of an AppBarButton or AppBarSeparator relative to an AppBar, use the AppBarButton.Alignment and AppBarSeparator.Alignment properties.

See Also