using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace AirPlanner { public partial class MainWindow : Window { static readonly Brush NavOff = (Brush)new BrushConverter().ConvertFromString("#7B8090")!; static readonly Brush NavOn = Brushes.White; public MainWindow() { InitializeComponent(); Show("home"); } void Show(string view) { if (view == "control") { MainContent.Content = new ControlView(); SetActive(navCtrl); } else { MainContent.Content = new HomeView(); SetActive(navHome); } } void SetActive(Button active) { foreach (var b in new[] { navHome, navCall, navCtrl, navView, navSet }) { b.Foreground = b == active ? NavOn : NavOff; b.FontWeight = b == active ? FontWeights.Bold : FontWeights.Normal; } } void Nav_Home(object sender, RoutedEventArgs e) => Show("home"); void Nav_Control(object sender, RoutedEventArgs e) => Show("control"); void Nav_Todo(object sender, RoutedEventArgs e) { /* 통화/조회/설정/알림/비상 — 추후 구현 */ } } }