Codepflege: CLAUDE.md und UI-Konsolidierung (Kapitel 13.4)
CLAUDE.md mit Projektkonventionen für künftige Claude-Code-Sitzungen. Wiederkehrende UI-Muster konsolidiert: neue PageHeader-Control für Titel/Untertitel in den Listen- und Detailansichten, globale Styles für Dialog-Titel und Leerlisten-Hinweise statt inline wiederholter Werte. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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<string> TitleProperty =
|
||||
AvaloniaProperty.Register<PageHeader, string>(nameof(Title), defaultValue: "");
|
||||
|
||||
public static readonly StyledProperty<string?> SubtitleProperty =
|
||||
AvaloniaProperty.Register<PageHeader, string?>(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();
|
||||
}
|
||||
Reference in New Issue
Block a user