Class QuickAccessToolbarButton
Represents a button for the QuickAccessToolBar.
Inheritance
QuickAccessToolbarButton
Implements
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public class QuickAccessToolbarButton : Button, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, ICommandSource
Examples
This example illustrates how to use the QuickAccessToolbarButton.
<SAF:MainWindow.QuickAccessToolBar>
<SAF:QuickAccessToolbarButton Command="{Binding CheckForUpdatesCommand}">
<ContentControl
Foreground="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type SAF:QuickAccessToolbarButton}}}"
Style="{SAF:Icon DownloadUpdate}" />
</SAF:QuickAccessToolbarButton>
<SAF:QuickAccessBox Caption="UserId"
IconStyle="{SAF:Icon UserSettings}"
QuickAccessCommand="{Binding LogoutCommand}"
QuickAccessIconStyle="{SAF:Icon Logout}"
MinWidth="200"
MaxWidth="300">
<SAF:DropDownMenuItem Command="{Binding LockApplicationCommand}"
Caption="Lock Application"
IconStyle="{SAF:Icon LockAccount}" />
<SAF:DropDownMenuItem Command="{Binding ChangePwdCommand}"
Caption="Change Password"
IconStyle="{SAF:Icon Edit}" />
</SAF:QuickAccessBox>
</SAF:MainWindow.QuickAccessToolBar>