24 lines
805 B
C#
24 lines
805 B
C#
|
|
|
|
|
|
// ReSharper disable once CheckNamespace
|
|
|
|
namespace WPFluent.Controls;
|
|
|
|
/// <summary>
|
|
/// Extended <see cref="System.Windows.Controls.MenuItem"/> with <see cref="SymbolRegular"/> properties.
|
|
/// </summary>
|
|
public class MenuItem : System.Windows.Controls.MenuItem
|
|
{
|
|
static MenuItem() { IconProperty.OverrideMetadata(typeof(MenuItem), new FrameworkPropertyMetadata(null)); }
|
|
|
|
/// <summary>
|
|
/// Gets or sets displayed <see cref="IconElement"/>.
|
|
/// </summary>
|
|
[System.Diagnostics.CodeAnalysis.SuppressMessage(
|
|
"WpfAnalyzers.DependencyProperty",
|
|
"WPF0012:CLR property type should match registered type",
|
|
Justification = "seems harmless")]
|
|
public new IconElement Icon { get => (IconElement)GetValue(IconProperty); set => SetValue(IconProperty, value); }
|
|
}
|