ChineseChess/ChineseChess.GUI/Views/ShellWindow.xaml.cs
2021-05-30 22:57:53 +08:00

28 lines
587 B
C#

using System.Windows.Controls;
using ChineseChess.GUI.Contracts.Views;
using ChineseChess.GUI.ViewModels;
using MahApps.Metro.Controls;
namespace ChineseChess.GUI.Views
{
public partial class ShellWindow : MetroWindow, IShellWindow
{
public ShellWindow(ShellViewModel viewModel)
{
InitializeComponent();
DataContext = viewModel;
}
public Frame GetNavigationFrame()
=> shellFrame;
public void ShowWindow()
=> Show();
public void CloseWindow()
=> Close();
}
}