Files
NebulaLauncher/Nebula.Launcher/Views/MainView.axaml.cs

20 lines
475 B
C#
Raw Permalink Normal View History

2024-12-21 13:11:30 +03:00
using Avalonia.Controls;
using Nebula.Launcher.ViewModels;
namespace Nebula.Launcher.Views;
public partial class MainView : UserControl
{
// This constructor is used when the view is created by the XAML Previewer
public MainView()
{
InitializeComponent();
}
// This constructor is used when the view is created via dependency injection
public MainView(MainViewModel viewModel)
: this()
{
DataContext = viewModel;
}
}