コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: L00G/2048Game
        public MainWindow()
        {
            InitializeComponent();

            this.Title = "2048";

            this.Width  = 300;
            this.Height = 400;

            this.Background = new SolidColorBrush(Colors.Beige);

            this.ResizeMode            = ResizeMode.NoResize | ResizeMode.CanMinimize;
            this.WindowStartupLocation = WindowStartupLocation.CenterScreen;

            oGame = new Game();

            this.AddChild(oGame.GetGamePanel());

            this.KeyDown += OnKeyDownHandler;
            this.Focus();
        }