using Avalonia; using Avalonia.Controls; namespace LehrerApp.Desktop.Views.Shared; /// Seiten-/Detail-Kopfzeile (Titel + optionaler Untertitel) — bisher in jeder /// Listen-/Detailansicht einzeln mit denselben Werten nachgebaut (13.4.3). public partial class PageHeader : UserControl { public static readonly StyledProperty TitleProperty = AvaloniaProperty.Register(nameof(Title), defaultValue: ""); public static readonly StyledProperty SubtitleProperty = AvaloniaProperty.Register(nameof(Subtitle)); public string Title { get => GetValue(TitleProperty); set => SetValue(TitleProperty, value); } public string? Subtitle { get => GetValue(SubtitleProperty); set => SetValue(SubtitleProperty, value); } public PageHeader() => InitializeComponent(); }