using System.ComponentModel; using System.Windows; using HC_APTBS.ViewModels; using Wpf.Ui.Controls; namespace HC_APTBS; /// /// Code-behind for MainWindow — minimal: sets DataContext and forwards the /// Closing event to a ViewModel command if needed. /// public partial class MainWindow : FluentWindow { public MainWindow(MainViewModel viewModel) { InitializeComponent(); DataContext = viewModel; } private void OnWindowClosing(object sender, CancelEventArgs e) { // Allow the window to close; services are disposed by the DI container. } }