Interface IApplicationMenuItem
Defines members that must be implemented for an instance that is set as System.Windows.FrameworkElement.DataContext of the ApplicationMenuItem.
Namespace: Sartorius.SAF.Presentation.Controls
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
public interface IApplicationMenuItem
Properties
View SourceCaption
Gets the caption.
Declaration
string Caption { get; }
Property Value
Type | Description |
---|---|
System.String |
Description
Gets the description.
Declaration
string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Icon
Gets the icon.
Declaration
virtual object Icon { get; }
Property Value
Type | Description |
---|---|
System.Object |
Remarks
This can be any object for which a template exists. You can directly use ModuleIconResourceKey to display one of the known icons. A System.Uri will be used as the System.Windows.Controls.Image.Source of an image.
IconSource
Gets the icon source.
Declaration
[Obsolete("Use the Icon property instead!")]
virtual Uri IconSource { get; }
Property Value
Type | Description |
---|---|
System.Uri |
ImageSource
Gets the image source.
Declaration
virtual Uri ImageSource { get; }
Property Value
Type | Description |
---|---|
System.Uri |
Remarks
This is only used in the legacy design when using Sartorius.SAF.Skins.HID.
Methods
View SourceOnActivate()
Called when the System.Windows.Controls.Primitives.ButtonBase.ClickEvent of the ApplicationMenuItem is raised.
Declaration
void OnActivate()