using Avalonia.Controls; using YZWater.Avalonia.Controls; namespace YZWater.Avalonia.Views; public partial class ViewCView : UserControl { public ViewCView() { InitializeComponent(); if (this.FindControl("TitleBar") is Border titleBar) ThemeBrushBinding.BindTitleBar(titleBar); if (this.FindControl("TitleText") is TextBlock t) ThemeHelper.ThemeChanged += () => t.Foreground = ThemeHelper.HeaderText; if (this.FindControl("SubtitleText") is TextBlock s) ThemeHelper.ThemeChanged += () => s.Foreground = ThemeHelper.HeaderSubtext; if (this.FindControl("StatusBar") is Border statusBar) ThemeBrushBinding.BindStatusBar(statusBar); if (this.FindControl("RootBorder") is Border root) ThemeBrushBinding.BindContent(root); } }