mirror of
https://github.com/Maplespe/DWMBlurGlass.git
synced 2026-12-02 00:05:40 -05:00
29 lines
962 B
C#
29 lines
962 B
C#
using DWMBlurGlassGUI.ViewModels;
|
|
using DWMBlurGlassGUI.Views.Pages;
|
|
using Wpf.Ui;
|
|
using Wpf.Ui.Abstractions;
|
|
using Wpf.Ui.Controls;
|
|
|
|
namespace DWMBlurGlassGUI.Views
|
|
{
|
|
public partial class MainWindow : FluentWindow
|
|
{
|
|
public MainWindowViewModel ViewModel { get; }
|
|
|
|
public MainWindow(MainWindowViewModel viewModel, INavigationViewPageProvider pageService, INavigationService navigationService, IContentDialogService contentDialogService)
|
|
{
|
|
ViewModel = viewModel;
|
|
DataContext = ViewModel;
|
|
|
|
InitializeComponent();
|
|
|
|
NavigationView.SetPageProviderService(pageService);
|
|
navigationService.SetNavigationControl(NavigationView);
|
|
contentDialogService.SetDialogHost(RootContentDialog);
|
|
|
|
// Navigate to the first page after loaded
|
|
Loaded += (s, e) => NavigationView.Navigate(typeof(GeneralSettingsPage));
|
|
}
|
|
}
|
|
}
|