Share via


RibbonMenuItem.ImageSource Property

Gets or sets the image that is displayed on the control.

Namespace:  Microsoft.Windows.Controls.Ribbon
Assembly:  RibbonControlsLibrary (in RibbonControlsLibrary.dll)

Syntax

'Declaration
Public Property ImageSource As ImageSource
public ImageSource ImageSource { get; set; }
public:
property ImageSource^ ImageSource {
    ImageSource^ get ();
    void set (ImageSource^ value);
}
member ImageSource : ImageSource with get, set
function get ImageSource () : ImageSource
function set ImageSource (value : ImageSource)

Property Value

Type: System.Windows.Media.ImageSource
The image that is displayed on the control. The registered default is nulla null reference (Nothing in Visual Basic). For more information about what can influence the value, see Dependency Property Value Precedence.

Dependency Property Information

Identifier field

ImageSourceProperty

Metadata properties set to true

None

.NET Framework Security

See Also

Reference

RibbonMenuItem Class

Microsoft.Windows.Controls.Ribbon Namespace

Other Resources

Ribbon Layout and Resizing