24 lines
562 B
C#
24 lines
562 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
|
|
namespace Pilz.UI.AvaloniaUI.Dialogs;
|
|
|
|
public partial class HeaderMenuItem : MenuItem
|
|
{
|
|
public static readonly StyledProperty<string?> HeaderTextProperty = AvaloniaProperty.Register<HeaderMenuItem, string?>(nameof(HeaderText));
|
|
|
|
public string? HeaderText
|
|
{
|
|
get => GetValue(HeaderTextProperty);
|
|
set
|
|
{
|
|
SetValue(HeaderTextProperty, value);
|
|
TextBlockHeader.Text = value;
|
|
}
|
|
}
|
|
|
|
public HeaderMenuItem()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
} |