mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-23 02:51:26 -07:00
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
using System.Windows;
|
|
using Bloxstrap.UI.ViewModels.Installer;
|
|
|
|
namespace Bloxstrap.UI.Elements.Installer.Pages
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for CompletionPage.xaml
|
|
/// </summary>
|
|
public partial class CompletionPage
|
|
{
|
|
private readonly CompletionViewModel _viewModel = new();
|
|
public CompletionPage()
|
|
{
|
|
_viewModel.CloseWindowRequest += (_, closeAction) =>
|
|
{
|
|
if (Window.GetWindow(this) is MainWindow window)
|
|
{
|
|
window.CloseAction = closeAction;
|
|
window.Close();
|
|
}
|
|
};
|
|
|
|
DataContext = _viewModel;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void UiPage_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
if (Window.GetWindow(this) is MainWindow window)
|
|
{
|
|
window.SetNextButtonText(Strings.Common_Navigation_Next);
|
|
window.SetButtonEnabled("back", false);
|
|
}
|
|
}
|
|
}
|
|
}
|