mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-15 05:36:04 +00:00
28 lines
710 B
C#
28 lines
710 B
C#
using System;
|
|
using MPF.UI.Core.ViewModels;
|
|
|
|
namespace MPF.UI.Core.Windows
|
|
{
|
|
public partial class MainWindow : WindowBase
|
|
{
|
|
/// <summary>
|
|
/// Read-only access to the current main view model
|
|
/// </summary>
|
|
public MainViewModel MainViewModel => DataContext as MainViewModel;
|
|
|
|
/// <summary>
|
|
/// Constructor
|
|
/// </summary>
|
|
public MainWindow() => InitializeComponent();
|
|
|
|
/// <summary>
|
|
/// Handler for MainWindow OnContentRendered event
|
|
/// </summary>
|
|
protected override void OnContentRendered(EventArgs e)
|
|
{
|
|
base.OnContentRendered(e);
|
|
MainViewModel.Init(this);
|
|
}
|
|
}
|
|
}
|