Click here to Skip to main content
15,897,371 members
Articles / Desktop Programming / XAML

The Bricks Game for Silverlight

Rate me:
Please Sign up or sign in to vote.
4.92/5 (43 votes)
8 Sep 2010CPOL13 min read 80.9K   1.3K   81  
An article exploring the use of MVVM, styles and templates in game programming in Silverlight 4
#pragma checksum "C:\codeproject\Bricks\2.0\Bricks.Silverlight\Views\BricksView.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "790726574A3EBFAF17ED883DACE6344C"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.1
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Resources;
using System.Windows.Shapes;
using System.Windows.Threading;


namespace Bricks.Silverlight {
    
    
    public partial class BricksView : System.Windows.Controls.UserControl {
        
        internal System.Windows.Controls.Grid LayoutRoot;
        
        internal System.Windows.Controls.MediaElement medIntro;
        
        internal System.Windows.Controls.MediaElement medClick;
        
        internal System.Windows.Controls.Grid grdBoard;
        
        internal System.Windows.Controls.TextBox txtFocus;
        
        internal System.Windows.Controls.ListBox lstBoard;
        
        internal System.Windows.Controls.StackPanel pnlIntro;
        
        internal System.Windows.Controls.StackPanel pnlGameOver;
        
        internal System.Windows.Controls.StackPanel pnlGamePaused;
        
        internal System.Windows.Controls.TextBlock txtScore;
        
        internal System.Windows.Controls.TextBlock txtHiScore;
        
        internal System.Windows.Controls.TextBlock txtLines;
        
        internal System.Windows.Controls.TextBlock txtLevel;
        
        internal System.Windows.Controls.TextBlock txtNext;
        
        internal System.Windows.Controls.ListBox lstNext;
        
        internal System.Windows.Controls.Button btnStart;
        
        internal System.Windows.Controls.Button btnPause;
        
        internal System.Windows.Controls.Button btnStop;
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Windows.Application.LoadComponent(this, new System.Uri("/Bricks.Silverlight;component/Views/BricksView.xaml", System.UriKind.Relative));
            this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
            this.medIntro = ((System.Windows.Controls.MediaElement)(this.FindName("medIntro")));
            this.medClick = ((System.Windows.Controls.MediaElement)(this.FindName("medClick")));
            this.grdBoard = ((System.Windows.Controls.Grid)(this.FindName("grdBoard")));
            this.txtFocus = ((System.Windows.Controls.TextBox)(this.FindName("txtFocus")));
            this.lstBoard = ((System.Windows.Controls.ListBox)(this.FindName("lstBoard")));
            this.pnlIntro = ((System.Windows.Controls.StackPanel)(this.FindName("pnlIntro")));
            this.pnlGameOver = ((System.Windows.Controls.StackPanel)(this.FindName("pnlGameOver")));
            this.pnlGamePaused = ((System.Windows.Controls.StackPanel)(this.FindName("pnlGamePaused")));
            this.txtScore = ((System.Windows.Controls.TextBlock)(this.FindName("txtScore")));
            this.txtHiScore = ((System.Windows.Controls.TextBlock)(this.FindName("txtHiScore")));
            this.txtLines = ((System.Windows.Controls.TextBlock)(this.FindName("txtLines")));
            this.txtLevel = ((System.Windows.Controls.TextBlock)(this.FindName("txtLevel")));
            this.txtNext = ((System.Windows.Controls.TextBlock)(this.FindName("txtNext")));
            this.lstNext = ((System.Windows.Controls.ListBox)(this.FindName("lstNext")));
            this.btnStart = ((System.Windows.Controls.Button)(this.FindName("btnStart")));
            this.btnPause = ((System.Windows.Controls.Button)(this.FindName("btnPause")));
            this.btnStop = ((System.Windows.Controls.Button)(this.FindName("btnStop")));
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions