Show / Hide Table of Contents

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 Source

Caption

Gets the caption.

Declaration
string Caption { get; }
Property Value
Type Description
System.String
View Source

Description

Gets the description.

Declaration
string Description { get; }
Property Value
Type Description
System.String
View Source

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.

View Source

IconSource

Gets the icon source.

Declaration
[Obsolete("Use the Icon property instead!")]
virtual Uri IconSource { get; }
Property Value
Type Description
System.Uri
View Source

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 Source

OnActivate()

Called when the System.Windows.Controls.Primitives.ButtonBase.ClickEvent of the ApplicationMenuItem is raised.

Declaration
void OnActivate()

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX