mirror of
https://github.com/jie65535/ChineseChess.git
synced 2024-07-27 18:55:00 +08:00
28 lines
587 B
C#
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();
|
|
}
|
|
}
|