Dela via


MenuAction.ImageUri Property

Gets or sets the path to an image associated with the MenuAction.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Extensibility (in Microsoft.Windows.Design.Extensibility.dll)

Syntax

'Declaration
Public Property ImageUri As Uri
'Usage
Dim instance As MenuAction 
Dim value As Uri 

value = instance.ImageUri

instance.ImageUri = value
public Uri ImageUri { get; set; }
public:
property Uri^ ImageUri {
    Uri^ get ();
    void set (Uri^ value);
}
public function get ImageUri () : Uri 
public function set ImageUri (value : Uri)

Property Value

Type: System.Uri
A Uri to the image associated with the MenuAction. The default value is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

MenuAction Class

MenuAction Members

Microsoft.Windows.Design.Interaction Namespace

PrimarySelectionContextMenuProvider

MenuGroup

Other Resources

Walkthrough: Creating a MenuAction