Interface IApplicationMenuItem
Defines members that must be implemented for an instance that is set as 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 |
|---|---|
| string |
Description
Gets the description.
Declaration
string Description { get; }
Property Value
| Type | Description |
|---|---|
| string |
Icon
Gets the icon.
Declaration
object Icon { get; }
Property Value
| Type | Description |
|---|---|
| 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 Uri will be used as the Source of an image.
IconSource
Gets the icon source.
Declaration
[Obsolete("Use the Icon property instead!")]
Uri IconSource { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
ImageSource
Gets the image source.
Declaration
Uri ImageSource { get; }
Property Value
| Type | Description |
|---|---|
| Uri |
Remarks
This is only used in the legacy design when using Sartorius.SAF.Skins.HID.
Methods
View SourceOnActivate()
Called when the ClickEvent of the ApplicationMenuItem is raised.
Declaration
void OnActivate()