From: gu.martinm@gmail.com Date: Sun, 17 Aug 2014 10:41:05 +0000 (+0200) Subject: Creating WP8 and WP81 directories for WindowsPhone projects X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=7c038d47ac4f72ae72d1f4bb5489c7850c6b3209;p=CSharpForFun%2F.git Creating WP8 and WP81 directories for WindowsPhone projects --- diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame.sln b/WindowsPhone/Connect4MonoGame/Connect4MonoGame.sln deleted file mode 100644 index 2378ac3..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame.sln +++ /dev/null @@ -1,32 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Connect4MonoGame", "Connect4MonoGame\Connect4MonoGame.csproj", "{1B061ADC-B891-4E69-B96A-E054C80333C0}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|ARM = Debug|ARM - Debug|x86 = Debug|x86 - Release|ARM = Release|ARM - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Debug|ARM.ActiveCfg = Debug|ARM - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Debug|ARM.Build.0 = Debug|ARM - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Debug|ARM.Deploy.0 = Debug|ARM - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Debug|x86.ActiveCfg = Debug|x86 - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Debug|x86.Build.0 = Debug|x86 - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Debug|x86.Deploy.0 = Debug|x86 - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Release|ARM.ActiveCfg = Release|ARM - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Release|ARM.Build.0 = Release|ARM - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Release|ARM.Deploy.0 = Release|ARM - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Release|x86.ActiveCfg = Release|x86 - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Release|x86.Build.0 = Release|x86 - {1B061ADC-B891-4E69-B96A-E054C80333C0}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/App.xaml b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/App.xaml deleted file mode 100644 index a03ea47..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/App.xaml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/App.xaml.cs b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/App.xaml.cs deleted file mode 100644 index 74b8d52..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/App.xaml.cs +++ /dev/null @@ -1,223 +0,0 @@ -using System; -using System.Diagnostics; -using System.Resources; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using Connect4MonoGame.Resources; - -namespace Connect4MonoGame -{ - public partial class App : Application - { - /// - /// Provides easy access to the root frame of the Phone Application. - /// - /// The root frame of the Phone Application. - public static PhoneApplicationFrame RootFrame { get; private set; } - - /// - /// Constructor for the Application object. - /// - public App() - { - // Global handler for uncaught exceptions. - UnhandledException += Application_UnhandledException; - - // Standard XAML initialization - InitializeComponent(); - - // Phone-specific initialization - InitializePhoneApplication(); - - // Language display initialization - InitializeLanguage(); - - // Show graphics profiling information while debugging. - if (Debugger.IsAttached) - { - // Display the current frame rate counters. - Application.Current.Host.Settings.EnableFrameRateCounter = true; - - // Show the areas of the app that are being redrawn in each frame. - //Application.Current.Host.Settings.EnableRedrawRegions = true; - - // Enable non-production analysis visualization mode, - // which shows areas of a page that are handed off to GPU with a colored overlay. - //Application.Current.Host.Settings.EnableCacheVisualization = true; - - // Prevent the screen from turning off while under the debugger by disabling - // the application's idle detection. - // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run - // and consume battery power when the user is not using the phone. - PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; - } - - } - - // Code to execute when the application is launching (eg, from Start) - // This code will not execute when the application is reactivated - private void Application_Launching(object sender, LaunchingEventArgs e) - { - } - - // Code to execute when the application is activated (brought to foreground) - // This code will not execute when the application is first launched - private void Application_Activated(object sender, ActivatedEventArgs e) - { - } - - // Code to execute when the application is deactivated (sent to background) - // This code will not execute when the application is closing - private void Application_Deactivated(object sender, DeactivatedEventArgs e) - { - } - - // Code to execute when the application is closing (eg, user hit Back) - // This code will not execute when the application is deactivated - private void Application_Closing(object sender, ClosingEventArgs e) - { - } - - // Code to execute if a navigation fails - private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) - { - if (Debugger.IsAttached) - { - // A navigation has failed; break into the debugger - Debugger.Break(); - } - } - - // Code to execute on Unhandled Exceptions - private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) - { - if (Debugger.IsAttached) - { - // An unhandled exception has occurred; break into the debugger - Debugger.Break(); - } - } - - #region Phone application initialization - - // Avoid double-initialization - private bool phoneApplicationInitialized = false; - - // Do not add any additional code to this method - private void InitializePhoneApplication() - { - if (phoneApplicationInitialized) - return; - - // Create the frame but don't set it as RootVisual yet; this allows the splash - // screen to remain active until the application is ready to render. - RootFrame = new PhoneApplicationFrame(); - RootFrame.Navigated += CompleteInitializePhoneApplication; - - // Handle navigation failures - RootFrame.NavigationFailed += RootFrame_NavigationFailed; - - // Handle reset requests for clearing the backstack - RootFrame.Navigated += CheckForResetNavigation; - - // Ensure we don't initialize again - phoneApplicationInitialized = true; - } - - // Do not add any additional code to this method - private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) - { - // Set the root visual to allow the application to render - if (RootVisual != RootFrame) - RootVisual = RootFrame; - - // Remove this handler since it is no longer needed - RootFrame.Navigated -= CompleteInitializePhoneApplication; - } - - private void CheckForResetNavigation(object sender, NavigationEventArgs e) - { - // If the app has received a 'reset' navigation, then we need to check - // on the next navigation to see if the page stack should be reset - if (e.NavigationMode == NavigationMode.Reset) - RootFrame.Navigated += ClearBackStackAfterReset; - } - - private void ClearBackStackAfterReset(object sender, NavigationEventArgs e) - { - // Unregister the event so it doesn't get called again - RootFrame.Navigated -= ClearBackStackAfterReset; - - // Only clear the stack for 'new' (forward) and 'refresh' navigations - if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) - return; - - // For UI consistency, clear the entire page stack - while (RootFrame.RemoveBackEntry() != null) - { - ; // do nothing - } - } - - #endregion - - // Initialize the app's font and flow direction as defined in its localized resource strings. - // - // To ensure that the font of your application is aligned with its supported languages and that the - // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage - // and ResourceFlowDirection should be initialized in each resx file to match these values with that - // file's culture. For example: - // - // AppResources.es-ES.resx - // ResourceLanguage's value should be "es-ES" - // ResourceFlowDirection's value should be "LeftToRight" - // - // AppResources.ar-SA.resx - // ResourceLanguage's value should be "ar-SA" - // ResourceFlowDirection's value should be "RightToLeft" - // - // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072. - // - private void InitializeLanguage() - { - try - { - // Set the font to match the display language defined by the - // ResourceLanguage resource string for each supported language. - // - // Fall back to the font of the neutral language if the Display - // language of the phone is not supported. - // - // If a compiler error is hit then ResourceLanguage is missing from - // the resource file. - RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); - - // Set the FlowDirection of all elements under the root frame based - // on the ResourceFlowDirection resource string for each - // supported language. - // - // If a compiler error is hit then ResourceFlowDirection is missing from - // the resource file. - FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection); - RootFrame.FlowDirection = flow; - } - catch - { - // If an exception is caught here it is most likely due to either - // ResourceLangauge not being correctly set to a supported language - // code or ResourceFlowDirection is set to a value other than LeftToRight - // or RightToLeft. - - if (Debugger.IsAttached) - { - Debugger.Break(); - } - - throw; - } - } - } -} \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/AlignmentGrid.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/AlignmentGrid.png deleted file mode 100644 index f7d2e97..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/AlignmentGrid.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/ApplicationIcon.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/ApplicationIcon.png deleted file mode 100644 index 7d95d4e..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/ApplicationIcon.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileLarge.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileLarge.png deleted file mode 100644 index e0c59ac..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileLarge.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileMedium.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileMedium.png deleted file mode 100644 index e93b89d..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileMedium.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileSmall.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileSmall.png deleted file mode 100644 index 550b1b5..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/FlipCycleTileSmall.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/IconicTileMediumLarge.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/IconicTileMediumLarge.png deleted file mode 100644 index 686e6b5..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/IconicTileMediumLarge.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/IconicTileSmall.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/IconicTileSmall.png deleted file mode 100644 index d4b5ede..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Assets/Tiles/IconicTileSmall.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Connect4MonoGame.csproj b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Connect4MonoGame.csproj deleted file mode 100644 index eef48a4..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Connect4MonoGame.csproj +++ /dev/null @@ -1,161 +0,0 @@ - - - - Debug - ARM - 10.0.20506 - 2.0 - {1B061ADC-B891-4E69-B96A-E054C80333C0} - {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - Connect4MonoGame - Connect4MonoGame - WindowsPhone - v8.0 - $(TargetFrameworkVersion) - true - - - true - true - Connect4MonoGame_$(Configuration)_$(Platform).xap - Properties\AppManifest.xml - Connect4MonoGame.App - true - 11.0 - true - - - true - full - false - bin\WindowsPhone\x86\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - bin\WindowsPhone\x86\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - bin\WindowsPhone\ARM\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - bin\WindowsPhone\ARM\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - App.xaml - - - - GamePage.xaml - - - - - True - True - AppResources.resx - - - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - - - - Designer - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - - - PublicResXFileCodeGenerator - AppResources.Designer.cs - - - - - - False - ..\..\..\..\MonoGame\MonoGame.Framework\bin\WindowsPhone\x86\Debug\MonoGame.Framework.dll - False - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Content/blupiece.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Content/blupiece.png deleted file mode 100644 index 4564d4c..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Content/blupiece.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Content/redpiece.png b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Content/redpiece.png deleted file mode 100644 index b1224bd..0000000 Binary files a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Content/redpiece.png and /dev/null differ diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Game1.cs b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Game1.cs deleted file mode 100644 index 0dce598..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Game1.cs +++ /dev/null @@ -1,91 +0,0 @@ -using Microsoft.Xna.Framework; -using Microsoft.Xna.Framework.Graphics; -using System.Windows; - -namespace Connect4MonoGame -{ - /// - /// This is the main type for your game - /// - public class Game1 : Game - { - GraphicsDeviceManager _graphics; - SpriteBatch _spriteBatch; - Texture2D texture; - - public Game1() - { - _graphics = new GraphicsDeviceManager(this); - Content.RootDirectory = "Content"; - - _graphics.SupportedOrientations = DisplayOrientation.LandscapeLeft; - } - - /// - /// Allows the game to perform any initialization it needs to before starting to run. - /// This is where it can query for any required services and load any non-graphic - /// related content. Calling base.Initialize will enumerate through any components - /// and initialize them as well. - /// - protected override void Initialize() - { - // TODO: Add your initialization logic here - - base.Initialize(); - } - - /// - /// LoadContent will be called once per game and is the place to load - /// all of your content. - /// - protected override void LoadContent() - { - // Create a new SpriteBatch, which can be used to draw textures. - _spriteBatch = new SpriteBatch(GraphicsDevice); - - //texture = new Texture2D(_spriteBatch.GraphicsDevice, 1, 1); - //texture.SetData(new Color[] { Color.Yellow }); - texture = Content.Load("redpiece.png"); - - - // TODO: use this.Content to load your game content here - } - - /// - /// UnloadContent will be called once per game and is the place to unload - /// all content. - /// - protected override void UnloadContent() - { - // TODO: Unload any non ContentManager content here - } - - /// - /// Allows the game to run logic such as updating the world, - /// checking for collisions, gathering input, and playing audio. - /// - /// Provides a snapshot of timing values. - protected override void Update(GameTime gameTime) - { - // TODO: Add your update logic here - - base.Update(gameTime); - } - - /// - /// This is called when the game should draw itself. - /// - /// Provides a snapshot of timing values. - protected override void Draw(GameTime gameTime) - { - GraphicsDevice.Clear(Color.CornflowerBlue); - - // TODO: Add your drawing code here - _spriteBatch.Begin(); - _spriteBatch.Draw(texture, new Rectangle(120, 120, 300, 300), Color.Yellow); - _spriteBatch.End(); - base.Draw(gameTime); - - } - } -} diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/GamePage.xaml b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/GamePage.xaml deleted file mode 100644 index 6fe3197..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/GamePage.xaml +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/GamePage.xaml.cs b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/GamePage.xaml.cs deleted file mode 100644 index dc8b81e..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/GamePage.xaml.cs +++ /dev/null @@ -1,47 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using Microsoft.Xna.Framework; -using MonoGame.Framework.WindowsPhone; -using Connect4MonoGame.Resources; - -namespace Connect4MonoGame -{ - public partial class GamePage : PhoneApplicationPage - { - private Game1 _game; - - // Constructor - public GamePage() - { - InitializeComponent(); - - _game = XamlGame.Create("", XnaSurface); - - // Sample code to localize the ApplicationBar - //BuildLocalizedApplicationBar(); - } - - // Sample code for building a localized ApplicationBar - //private void BuildLocalizedApplicationBar() - //{ - // // Set the page's ApplicationBar to a new instance of ApplicationBar. - // ApplicationBar = new ApplicationBar(); - - // // Create a new button and set the text value to the localized string from AppResources. - // ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.rest.png", UriKind.Relative)); - // appBarButton.Text = AppResources.AppBarButtonText; - // ApplicationBar.Buttons.Add(appBarButton); - - // // Create a new menu item with the localized string from AppResources. - // ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText); - // ApplicationBar.MenuItems.Add(appBarMenuItem); - //} - } -} \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/LocalizedStrings.cs b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/LocalizedStrings.cs deleted file mode 100644 index 8ac08f7..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/LocalizedStrings.cs +++ /dev/null @@ -1,14 +0,0 @@ -using Connect4MonoGame.Resources; - -namespace Connect4MonoGame -{ - /// - /// Provides access to string resources. - /// - public class LocalizedStrings - { - private static AppResources _localizedResources = new AppResources(); - - public AppResources LocalizedResources { get { return _localizedResources; } } - } -} \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/AppManifest.xml b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/AppManifest.xml deleted file mode 100644 index 6712a11..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/AppManifest.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/AssemblyInfo.cs b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/AssemblyInfo.cs deleted file mode 100644 index c09b700..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,38 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Resources; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("Connect4MonoGame")] -[assembly: AssemblyProduct("Connect4MonoGame")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyCopyright("Copyright © 2014")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("92d9cb94-79bd-41a2-9323-da24110f57eb")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: NeutralResourcesLanguageAttribute("en-US")] diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/WMAppManifest.xml b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/WMAppManifest.xml deleted file mode 100644 index 69ebedb..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Properties/WMAppManifest.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - Connect4MonoGame - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Resources/AppResources.Designer.cs b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Resources/AppResources.Designer.cs deleted file mode 100644 index 241ac84..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Resources/AppResources.Designer.cs +++ /dev/null @@ -1,127 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.17626 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace Connect4MonoGame.Resources -{ - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class AppResources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal AppResources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager - { - get - { - if (object.ReferenceEquals(resourceMan, null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Connect4MonoGame.Resources.AppResources", typeof(AppResources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to LeftToRight. - /// - public static string ResourceFlowDirection - { - get - { - return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to us-EN. - /// - public static string ResourceLanguage - { - get - { - return ResourceManager.GetString("ResourceLanguage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to MY APPLICATION. - /// - public static string ApplicationTitle - { - get - { - return ResourceManager.GetString("ApplicationTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to button. - /// - public static string AppBarButtonText - { - get - { - return ResourceManager.GetString("AppBarButtonText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to menu item. - /// - public static string AppBarMenuItemText - { - get - { - return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); - } - } - } -} diff --git a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Resources/AppResources.resx b/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Resources/AppResources.resx deleted file mode 100644 index 529a194..0000000 --- a/WindowsPhone/Connect4MonoGame/Connect4MonoGame/Resources/AppResources.resx +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LeftToRight - Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language - - - en-US - Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language. - - - MY APPLICATION - - - add - - - Menu Item - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp.sln b/WindowsPhone/MVVMTestApp/MVVMTestApp.sln deleted file mode 100644 index 1934dd4..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MVVMTestApp", "MVVMTestApp\MVVMTestApp.csproj", "{EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|ARM.ActiveCfg = Debug|ARM - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|ARM.Build.0 = Debug|ARM - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|ARM.Deploy.0 = Debug|ARM - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|x86.ActiveCfg = Debug|x86 - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|x86.Build.0 = Debug|x86 - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Debug|x86.Deploy.0 = Debug|x86 - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|Any CPU.Build.0 = Release|Any CPU - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|Any CPU.Deploy.0 = Release|Any CPU - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|ARM.ActiveCfg = Release|ARM - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|ARM.Build.0 = Release|ARM - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|ARM.Deploy.0 = Release|ARM - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|x86.ActiveCfg = Release|x86 - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|x86.Build.0 = Release|x86 - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/App.xaml b/WindowsPhone/MVVMTestApp/MVVMTestApp/App.xaml deleted file mode 100644 index 860c64f..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/App.xaml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/App.xaml.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/App.xaml.cs deleted file mode 100644 index bd5076b..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/App.xaml.cs +++ /dev/null @@ -1,225 +0,0 @@ -using System; -using System.Diagnostics; -using System.Resources; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using MVVMTestApp.Resources; - -namespace MVVMTestApp -{ - public partial class App : Application - { - /// - /// Provides easy access to the root frame of the Phone Application. - /// - /// The root frame of the Phone Application. - public static PhoneApplicationFrame RootFrame { get; private set; } - - /// - /// Constructor for the Application object. - /// - public App() - { - // Global handler for uncaught exceptions. - UnhandledException += Application_UnhandledException; - - // Standard XAML initialization - InitializeComponent(); - - // Phone-specific initialization - InitializePhoneApplication(); - - // Language display initialization - InitializeLanguage(); - - // Show graphics profiling information while debugging. - if (Debugger.IsAttached) - { - // Display the current frame rate counters. - Application.Current.Host.Settings.EnableFrameRateCounter = true; - - // Show the areas of the app that are being redrawn in each frame. - //Application.Current.Host.Settings.EnableRedrawRegions = true; - - // Enable non-production analysis visualization mode, - // which shows areas of a page that are handed off to GPU with a colored overlay. - //Application.Current.Host.Settings.EnableCacheVisualization = true; - - // Prevent the screen from turning off while under the debugger by disabling - // the application's idle detection. - // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run - // and consume battery power when the user is not using the phone. - PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; - } - - } - - // Code to execute when the application is launching (eg, from Start) - // This code will not execute when the application is reactivated - private void Application_Launching(object sender, LaunchingEventArgs e) - { - StateUtilities.IsLaunching = true; - } - - // Code to execute when the application is activated (brought to foreground) - // This code will not execute when the application is first launched - private void Application_Activated(object sender, ActivatedEventArgs e) - { - StateUtilities.IsLaunching = false; - } - - // Code to execute when the application is deactivated (sent to background) - // This code will not execute when the application is closing - private void Application_Deactivated(object sender, DeactivatedEventArgs e) - { - } - - // Code to execute when the application is closing (eg, user hit Back) - // This code will not execute when the application is deactivated - private void Application_Closing(object sender, ClosingEventArgs e) - { - } - - // Code to execute if a navigation fails - private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) - { - if (Debugger.IsAttached) - { - // A navigation has failed; break into the debugger - Debugger.Break(); - } - } - - // Code to execute on Unhandled Exceptions - private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) - { - if (Debugger.IsAttached) - { - // An unhandled exception has occurred; break into the debugger - Debugger.Break(); - } - } - - #region Phone application initialization - - // Avoid double-initialization - private bool phoneApplicationInitialized = false; - - // Do not add any additional code to this method - private void InitializePhoneApplication() - { - if (phoneApplicationInitialized) - return; - - // Create the frame but don't set it as RootVisual yet; this allows the splash - // screen to remain active until the application is ready to render. - RootFrame = new PhoneApplicationFrame(); - RootFrame.Navigated += CompleteInitializePhoneApplication; - - // Handle navigation failures - RootFrame.NavigationFailed += RootFrame_NavigationFailed; - - // Handle reset requests for clearing the backstack - RootFrame.Navigated += CheckForResetNavigation; - - // Ensure we don't initialize again - phoneApplicationInitialized = true; - } - - // Do not add any additional code to this method - private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) - { - // Set the root visual to allow the application to render - if (RootVisual != RootFrame) - RootVisual = RootFrame; - - // Remove this handler since it is no longer needed - RootFrame.Navigated -= CompleteInitializePhoneApplication; - } - - private void CheckForResetNavigation(object sender, NavigationEventArgs e) - { - // If the app has received a 'reset' navigation, then we need to check - // on the next navigation to see if the page stack should be reset - if (e.NavigationMode == NavigationMode.Reset) - RootFrame.Navigated += ClearBackStackAfterReset; - } - - private void ClearBackStackAfterReset(object sender, NavigationEventArgs e) - { - // Unregister the event so it doesn't get called again - RootFrame.Navigated -= ClearBackStackAfterReset; - - // Only clear the stack for 'new' (forward) and 'refresh' navigations - if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) - return; - - // For UI consistency, clear the entire page stack - while (RootFrame.RemoveBackEntry() != null) - { - ; // do nothing - } - } - - #endregion - - // Initialize the app's font and flow direction as defined in its localized resource strings. - // - // To ensure that the font of your application is aligned with its supported languages and that the - // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage - // and ResourceFlowDirection should be initialized in each resx file to match these values with that - // file's culture. For example: - // - // AppResources.es-ES.resx - // ResourceLanguage's value should be "es-ES" - // ResourceFlowDirection's value should be "LeftToRight" - // - // AppResources.ar-SA.resx - // ResourceLanguage's value should be "ar-SA" - // ResourceFlowDirection's value should be "RightToLeft" - // - // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072. - // - private void InitializeLanguage() - { - try - { - // Set the font to match the display language defined by the - // ResourceLanguage resource string for each supported language. - // - // Fall back to the font of the neutral language if the Display - // language of the phone is not supported. - // - // If a compiler error is hit then ResourceLanguage is missing from - // the resource file. - RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); - - // Set the FlowDirection of all elements under the root frame based - // on the ResourceFlowDirection resource string for each - // supported language. - // - // If a compiler error is hit then ResourceFlowDirection is missing from - // the resource file. - FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection); - RootFrame.FlowDirection = flow; - } - catch - { - // If an exception is caught here it is most likely due to either - // ResourceLangauge not being correctly set to a supported language - // code or ResourceFlowDirection is set to a value other than LeftToRight - // or RightToLeft. - - if (Debugger.IsAttached) - { - Debugger.Break(); - } - - throw; - } - } - } -} \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/AppBarSave.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/AppBarSave.png deleted file mode 100644 index 8e31a2a..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/AppBarSave.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/AlignmentGrid.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/AlignmentGrid.png deleted file mode 100644 index f7d2e97..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/AlignmentGrid.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/ApplicationIcon.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/ApplicationIcon.png deleted file mode 100644 index 7d95d4e..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/ApplicationIcon.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileLarge.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileLarge.png deleted file mode 100644 index e0c59ac..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileLarge.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileMedium.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileMedium.png deleted file mode 100644 index e93b89d..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileMedium.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileSmall.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileSmall.png deleted file mode 100644 index 550b1b5..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/FlipCycleTileSmall.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/IconicTileMediumLarge.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/IconicTileMediumLarge.png deleted file mode 100644 index 686e6b5..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/IconicTileMediumLarge.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/IconicTileSmall.png b/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/IconicTileSmall.png deleted file mode 100644 index d4b5ede..0000000 Binary files a/WindowsPhone/MVVMTestApp/MVVMTestApp/Assets/Tiles/IconicTileSmall.png and /dev/null differ diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/LocalizedStrings.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/LocalizedStrings.cs deleted file mode 100644 index cc539f1..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/LocalizedStrings.cs +++ /dev/null @@ -1,14 +0,0 @@ -using MVVMTestApp.Resources; - -namespace MVVMTestApp -{ - /// - /// Provides access to string resources. - /// - public class LocalizedStrings - { - private static AppResources _localizedResources = new AppResources(); - - public AppResources LocalizedResources { get { return _localizedResources; } } - } -} \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/MVVMTestApp.csproj b/WindowsPhone/MVVMTestApp/MVVMTestApp/MVVMTestApp.csproj deleted file mode 100644 index df5b852..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/MVVMTestApp.csproj +++ /dev/null @@ -1,181 +0,0 @@ - - - - Debug - AnyCPU - 10.0.20506 - 2.0 - {EFF1A25D-BB2F-4209-89D1-BD93CE8A748A} - {C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} - Library - Properties - MVVMTestApp - MVVMTestApp - WindowsPhone - v8.0 - $(TargetFrameworkVersion) - true - - - true - true - MVVMTestApp_$(Configuration)_$(Platform).xap - Properties\AppManifest.xml - MVVMTestApp.App - true - 11.0 - true - - - true - full - false - Bin\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\x86\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\x86\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - true - full - false - Bin\ARM\Debug - DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - pdbonly - true - Bin\ARM\Release - TRACE;SILVERLIGHT;WINDOWS_PHONE - true - true - prompt - 4 - - - - App.xaml - - - - MainPage.xaml - - - - - True - True - AppResources.resx - - - - - ItemView.xaml - - - LevelView.xaml - - - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - - - - Designer - - - - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - PreserveNewest - - - - - PublicResXFileCodeGenerator - AppResources.Designer.cs - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/MainPage.xaml b/WindowsPhone/MVVMTestApp/MVVMTestApp/MainPage.xaml deleted file mode 100644 index a941530..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/MainPage.xaml +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/MainPage.xaml.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/MainPage.xaml.cs deleted file mode 100644 index b8946bc..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/MainPage.xaml.cs +++ /dev/null @@ -1,104 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using MVVMTestApp.Resources; -using MVVMTestApp.ViewModelNamespace; - -namespace MVVMTestApp -{ - public partial class MainPage : PhoneApplicationPage - { - private ViewModel vm; - - // Constructor - public MainPage() - { - InitializeComponent(); - vm = new ViewModel(); - - // Sample code to localize the ApplicationBar - //BuildLocalizedApplicationBar(); - } - - - protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e) - { - base.OnNavigatedTo(e); - - if (!StateUtilities.IsLaunching && this.State.ContainsKey("Accomplishments")) - { - // Old instance of the application - // The user started the application from the Back button. - - vm = (ViewModel)this.State["Accomplishments"]; - MessageBox.Show("Got data from state"); - } - else - { - // New instance of the application - // The user started the application from the application list, - // or there is no saved state available. - - vm.GetAccomplishments(); - MessageBox.Show("Did not get data from state"); - } - - - // There are two different views, but only one view model. - // So, use LINQ queries to populate the views. - - // Set the data context for the Item view. - ItemViewOnPage.DataContext = from Accomplishment in vm.Accomplishments where Accomplishment.Type == "Item" select Accomplishment; - - // Set the data context for the Level view. - LevelViewOnPage.DataContext = from Accomplishment in vm.Accomplishments where Accomplishment.Type == "Level" select Accomplishment; - - // If there is only one view, you could use the following code - // to populate the view. - //AccomplishmentViewOnPage.DataContext = vm.Accomplishments; - } - - protected override void OnNavigatedFrom(System.Windows.Navigation.NavigationEventArgs e) - { - base.OnNavigatedFrom(e); - - if (this.State.ContainsKey("Accomplishments")) - { - this.State["Accomplishments"] = vm; - } - else - { - this.State.Add("Accomplishments", vm); - } - - StateUtilities.IsLaunching = false; - } - - private void AppBarSave_Click(object sender, EventArgs e) - { - vm.SaveAccomplishments(); - } - - // Sample code for building a localized ApplicationBar - //private void BuildLocalizedApplicationBar() - //{ - // // Set the page's ApplicationBar to a new instance of ApplicationBar. - // ApplicationBar = new ApplicationBar(); - - // // Create a new button and set the text value to the localized string from AppResources. - // ApplicationBarIconButton appBarButton = new ApplicationBarIconButton(new Uri("/Assets/AppBar/appbar.add.rest.png", UriKind.Relative)); - // appBarButton.Text = AppResources.AppBarButtonText; - // ApplicationBar.Buttons.Add(appBarButton); - - // // Create a new menu item with the localized string from AppResources. - // ApplicationBarMenuItem appBarMenuItem = new ApplicationBarMenuItem(AppResources.AppBarMenuItemText); - // ApplicationBar.MenuItems.Add(appBarMenuItem); - //} - } -} \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Model/Accomplishment.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/Model/Accomplishment.cs deleted file mode 100644 index 9d8cf60..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/Model/Accomplishment.cs +++ /dev/null @@ -1,68 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MVVMTestApp.Model -{ - class Accomplishment : INotifyPropertyChanged - { - // The name of the accomplishment. - public string Name { get; set; } - - // The type of the accomplishment, Item or Level. - public string Type { get; set; } - - // The number of each item that has been collected. - private int _count; - public int Count - { - get - { - return _count; - } - set - { - _count = value; - RaisePropertyChanged("Count"); - } - } - - // Whether a level has been completed or not - private bool _completed; - public bool Completed - { - get - { - return _completed; - } - set - { - _completed = value; - RaisePropertyChanged("Completed"); - } - } - - - public event PropertyChangedEventHandler PropertyChanged; - - private void RaisePropertyChanged(string propertyName) - { - if (this.PropertyChanged != null) - { - this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName)); - } - } - - - // Create a copy of an accomplishment to save. - // If your object is databound, this copy is not databound. - public Accomplishment GetCopy() - { - Accomplishment copy = (Accomplishment)this.MemberwiseClone(); - return copy; - } - } -} diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/AppManifest.xml b/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/AppManifest.xml deleted file mode 100644 index 6712a11..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/AppManifest.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/AssemblyInfo.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/AssemblyInfo.cs deleted file mode 100644 index 639701a..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using System.Resources; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("MVVMTestApp")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("MVVMTestApp")] -[assembly: AssemblyCopyright("Copyright © 2014")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("e647b439-ea46-4b51-ad68-e31c1b5f901d")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Revision and Build Numbers -// by using the '*' as shown below: -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] -[assembly: NeutralResourcesLanguageAttribute("en-US")] diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/WMAppManifest.xml b/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/WMAppManifest.xml deleted file mode 100644 index 3e1ae86..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/Properties/WMAppManifest.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - MVVMTestApp - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Resources/AppResources.Designer.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/Resources/AppResources.Designer.cs deleted file mode 100644 index 794cf98..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/Resources/AppResources.Designer.cs +++ /dev/null @@ -1,127 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.17626 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace MVVMTestApp.Resources -{ - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - public class AppResources - { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal AppResources() - { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Resources.ResourceManager ResourceManager - { - get - { - if (object.ReferenceEquals(resourceMan, null)) - { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("MVVMTestApp.Resources.AppResources", typeof(AppResources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - public static global::System.Globalization.CultureInfo Culture - { - get - { - return resourceCulture; - } - set - { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to LeftToRight. - /// - public static string ResourceFlowDirection - { - get - { - return ResourceManager.GetString("ResourceFlowDirection", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to us-EN. - /// - public static string ResourceLanguage - { - get - { - return ResourceManager.GetString("ResourceLanguage", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to MY APPLICATION. - /// - public static string ApplicationTitle - { - get - { - return ResourceManager.GetString("ApplicationTitle", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to button. - /// - public static string AppBarButtonText - { - get - { - return ResourceManager.GetString("AppBarButtonText", resourceCulture); - } - } - - /// - /// Looks up a localized string similar to menu item. - /// - public static string AppBarMenuItemText - { - get - { - return ResourceManager.GetString("AppBarMenuItemText", resourceCulture); - } - } - } -} diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/Resources/AppResources.resx b/WindowsPhone/MVVMTestApp/MVVMTestApp/Resources/AppResources.resx deleted file mode 100644 index 529a194..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/Resources/AppResources.resx +++ /dev/null @@ -1,137 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - LeftToRight - Controls the FlowDirection for all elements in the RootFrame. Set to the traditional direction of this resource file's language - - - en-US - Controls the Language and ensures that the font for all elements in the RootFrame aligns with the app's language. Set to the language code of this resource file's language. - - - MY APPLICATION - - - add - - - Menu Item - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/StateUtilities.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/StateUtilities.cs deleted file mode 100644 index d0cad22..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/StateUtilities.cs +++ /dev/null @@ -1,19 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace MVVMTestApp -{ - public static class StateUtilities - { - private static Boolean isLaunching; - - public static Boolean IsLaunching - { - get { return isLaunching; } - set { isLaunching = value; } - } - } -} diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/ItemView.xaml b/WindowsPhone/MVVMTestApp/MVVMTestApp/View/ItemView.xaml deleted file mode 100644 index e4a2b38..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/ItemView.xaml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/ItemView.xaml.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/View/ItemView.xaml.cs deleted file mode 100644 index 7bb34e7..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/ItemView.xaml.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; - -namespace MVVMTestApp.View -{ - public partial class ItemView : UserControl - { - public ItemView() - { - InitializeComponent(); - } - } -} diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/LevelView.xaml b/WindowsPhone/MVVMTestApp/MVVMTestApp/View/LevelView.xaml deleted file mode 100644 index b050de8..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/LevelView.xaml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/LevelView.xaml.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/View/LevelView.xaml.cs deleted file mode 100644 index c9f6fb3..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/View/LevelView.xaml.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Globalization; -using System.Linq; -using System.Net; -using System.Windows; -using System.Windows.Controls; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; - -namespace MVVMTestApp.View -{ - public partial class LevelView : UserControl - { - public LevelView() - { - InitializeComponent(); - } - } - - - public class BoolOpposite : System.Windows.Data.IValueConverter - { - public object Convert(object value, Type targetType, object parameter, CultureInfo culture) - { - bool b = (bool)value; - return !b; - } - - public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) - { - string s = value as string; - bool b; - - if (bool.TryParse(s, out b)) - { - return !b; - } - return false; - } - } -} \ No newline at end of file diff --git a/WindowsPhone/MVVMTestApp/MVVMTestApp/ViewModel/ViewModel.cs b/WindowsPhone/MVVMTestApp/MVVMTestApp/ViewModel/ViewModel.cs deleted file mode 100644 index 4559020..0000000 --- a/WindowsPhone/MVVMTestApp/MVVMTestApp/ViewModel/ViewModel.cs +++ /dev/null @@ -1,84 +0,0 @@ -using MVVMTestApp.Model; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.IO.IsolatedStorage; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows; - -namespace MVVMTestApp.ViewModelNamespace -{ - class ViewModel - { - public ObservableCollection Accomplishments { get; set; } - - public void GetAccomplishments() - { - if (IsolatedStorageSettings.ApplicationSettings.Count > 0) - { - GetSavedAccomplishments(); - } - else - { - GetDefaultAccomplishments(); - } - } - - - public void GetDefaultAccomplishments() - { - ObservableCollection a = new ObservableCollection(); - - // Items to collect - a.Add(new Accomplishment() { Name = "Potions", Type = "Item" }); - a.Add(new Accomplishment() { Name = "Coins", Type = "Item" }); - a.Add(new Accomplishment() { Name = "Hearts", Type = "Item" }); - a.Add(new Accomplishment() { Name = "Swords", Type = "Item" }); - a.Add(new Accomplishment() { Name = "Shields", Type = "Item" }); - - // Levels to complete - a.Add(new Accomplishment() { Name = "Level 1", Type = "Level" }); - a.Add(new Accomplishment() { Name = "Level 2", Type = "Level" }); - a.Add(new Accomplishment() { Name = "Level 3", Type = "Level" }); - - Accomplishments = a; - MessageBox.Show("Got accomplishments from default"); - } - - - public void GetSavedAccomplishments() - { - ObservableCollection a = new ObservableCollection(); - - foreach (Object o in IsolatedStorageSettings.ApplicationSettings.Values) - { - a.Add((Accomplishment)o); - } - - Accomplishments = a; - MessageBox.Show("Got accomplishments from storage"); - } - - public void SaveAccomplishments() - { - IsolatedStorageSettings settings = IsolatedStorageSettings.ApplicationSettings; - - foreach (Accomplishment a in Accomplishments) - { - if (settings.Contains(a.Name)) - { - settings[a.Name] = a; - } - else - { - settings.Add(a.Name, a.GetCopy()); - } - } - - settings.Save(); - MessageBox.Show("Finished saving accomplishments"); - } - } -} diff --git a/WindowsPhone/MyFirstApp/MyFirstApp.sln b/WindowsPhone/MyFirstApp/MyFirstApp.sln deleted file mode 100644 index 758af47..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp.sln +++ /dev/null @@ -1,40 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.21005.1 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MyFirstApp", "MyFirstApp\MyFirstApp.csproj", "{F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Debug|ARM = Debug|ARM - Debug|x86 = Debug|x86 - Release|Any CPU = Release|Any CPU - Release|ARM = Release|ARM - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|Any CPU.Deploy.0 = Debug|Any CPU - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|ARM.ActiveCfg = Debug|ARM - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|ARM.Build.0 = Debug|ARM - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|ARM.Deploy.0 = Debug|ARM - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|x86.ActiveCfg = Debug|x86 - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|x86.Build.0 = Debug|x86 - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Debug|x86.Deploy.0 = Debug|x86 - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|Any CPU.Build.0 = Release|Any CPU - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|Any CPU.Deploy.0 = Release|Any CPU - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|ARM.ActiveCfg = Release|ARM - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|ARM.Build.0 = Release|ARM - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|ARM.Deploy.0 = Release|ARM - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|x86.ActiveCfg = Release|x86 - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|x86.Build.0 = Release|x86 - {F14CB6C1-C8A1-4527-92CC-4F30748BAFEA}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/App.xaml b/WindowsPhone/MyFirstApp/MyFirstApp/App.xaml deleted file mode 100644 index 6bf39dd..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp/App.xaml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/App.xaml.cs b/WindowsPhone/MyFirstApp/MyFirstApp/App.xaml.cs deleted file mode 100644 index d90d8b3..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp/App.xaml.cs +++ /dev/null @@ -1,223 +0,0 @@ -using System; -using System.Diagnostics; -using System.Resources; -using System.Windows; -using System.Windows.Markup; -using System.Windows.Navigation; -using Microsoft.Phone.Controls; -using Microsoft.Phone.Shell; -using MyFirstApp.Resources; - -namespace MyFirstApp -{ - public partial class App : Application - { - /// - /// Provides easy access to the root frame of the Phone Application. - /// - /// The root frame of the Phone Application. - public static PhoneApplicationFrame RootFrame { get; private set; } - - /// - /// Constructor for the Application object. - /// - public App() - { - // Global handler for uncaught exceptions. - UnhandledException += Application_UnhandledException; - - // Standard XAML initialization - InitializeComponent(); - - // Phone-specific initialization - InitializePhoneApplication(); - - // Language display initialization - InitializeLanguage(); - - // Show graphics profiling information while debugging. - if (Debugger.IsAttached) - { - // Display the current frame rate counters. - Application.Current.Host.Settings.EnableFrameRateCounter = true; - - // Show the areas of the app that are being redrawn in each frame. - //Application.Current.Host.Settings.EnableRedrawRegions = true; - - // Enable non-production analysis visualization mode, - // which shows areas of a page that are handed off to GPU with a colored overlay. - //Application.Current.Host.Settings.EnableCacheVisualization = true; - - // Prevent the screen from turning off while under the debugger by disabling - // the application's idle detection. - // Caution:- Use this under debug mode only. Application that disables user idle detection will continue to run - // and consume battery power when the user is not using the phone. - PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled; - } - - } - - // Code to execute when the application is launching (eg, from Start) - // This code will not execute when the application is reactivated - private void Application_Launching(object sender, LaunchingEventArgs e) - { - } - - // Code to execute when the application is activated (brought to foreground) - // This code will not execute when the application is first launched - private void Application_Activated(object sender, ActivatedEventArgs e) - { - } - - // Code to execute when the application is deactivated (sent to background) - // This code will not execute when the application is closing - private void Application_Deactivated(object sender, DeactivatedEventArgs e) - { - } - - // Code to execute when the application is closing (eg, user hit Back) - // This code will not execute when the application is deactivated - private void Application_Closing(object sender, ClosingEventArgs e) - { - } - - // Code to execute if a navigation fails - private void RootFrame_NavigationFailed(object sender, NavigationFailedEventArgs e) - { - if (Debugger.IsAttached) - { - // A navigation has failed; break into the debugger - Debugger.Break(); - } - } - - // Code to execute on Unhandled Exceptions - private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) - { - if (Debugger.IsAttached) - { - // An unhandled exception has occurred; break into the debugger - Debugger.Break(); - } - } - - #region Phone application initialization - - // Avoid double-initialization - private bool phoneApplicationInitialized = false; - - // Do not add any additional code to this method - private void InitializePhoneApplication() - { - if (phoneApplicationInitialized) - return; - - // Create the frame but don't set it as RootVisual yet; this allows the splash - // screen to remain active until the application is ready to render. - RootFrame = new PhoneApplicationFrame(); - RootFrame.Navigated += CompleteInitializePhoneApplication; - - // Handle navigation failures - RootFrame.NavigationFailed += RootFrame_NavigationFailed; - - // Handle reset requests for clearing the backstack - RootFrame.Navigated += CheckForResetNavigation; - - // Ensure we don't initialize again - phoneApplicationInitialized = true; - } - - // Do not add any additional code to this method - private void CompleteInitializePhoneApplication(object sender, NavigationEventArgs e) - { - // Set the root visual to allow the application to render - if (RootVisual != RootFrame) - RootVisual = RootFrame; - - // Remove this handler since it is no longer needed - RootFrame.Navigated -= CompleteInitializePhoneApplication; - } - - private void CheckForResetNavigation(object sender, NavigationEventArgs e) - { - // If the app has received a 'reset' navigation, then we need to check - // on the next navigation to see if the page stack should be reset - if (e.NavigationMode == NavigationMode.Reset) - RootFrame.Navigated += ClearBackStackAfterReset; - } - - private void ClearBackStackAfterReset(object sender, NavigationEventArgs e) - { - // Unregister the event so it doesn't get called again - RootFrame.Navigated -= ClearBackStackAfterReset; - - // Only clear the stack for 'new' (forward) and 'refresh' navigations - if (e.NavigationMode != NavigationMode.New && e.NavigationMode != NavigationMode.Refresh) - return; - - // For UI consistency, clear the entire page stack - while (RootFrame.RemoveBackEntry() != null) - { - ; // do nothing - } - } - - #endregion - - // Initialize the app's font and flow direction as defined in its localized resource strings. - // - // To ensure that the font of your application is aligned with its supported languages and that the - // FlowDirection for each of those languages follows its traditional direction, ResourceLanguage - // and ResourceFlowDirection should be initialized in each resx file to match these values with that - // file's culture. For example: - // - // AppResources.es-ES.resx - // ResourceLanguage's value should be "es-ES" - // ResourceFlowDirection's value should be "LeftToRight" - // - // AppResources.ar-SA.resx - // ResourceLanguage's value should be "ar-SA" - // ResourceFlowDirection's value should be "RightToLeft" - // - // For more info on localizing Windows Phone apps see http://go.microsoft.com/fwlink/?LinkId=262072. - // - private void InitializeLanguage() - { - try - { - // Set the font to match the display language defined by the - // ResourceLanguage resource string for each supported language. - // - // Fall back to the font of the neutral language if the Display - // language of the phone is not supported. - // - // If a compiler error is hit then ResourceLanguage is missing from - // the resource file. - RootFrame.Language = XmlLanguage.GetLanguage(AppResources.ResourceLanguage); - - // Set the FlowDirection of all elements under the root frame based - // on the ResourceFlowDirection resource string for each - // supported language. - // - // If a compiler error is hit then ResourceFlowDirection is missing from - // the resource file. - FlowDirection flow = (FlowDirection)Enum.Parse(typeof(FlowDirection), AppResources.ResourceFlowDirection); - RootFrame.FlowDirection = flow; - } - catch - { - // If an exception is caught here it is most likely due to either - // ResourceLangauge not being correctly set to a supported language - // code or ResourceFlowDirection is set to a value other than LeftToRight - // or RightToLeft. - - if (Debugger.IsAttached) - { - Debugger.Break(); - } - - throw; - } - } - } -} \ No newline at end of file diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/AlignmentGrid.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/AlignmentGrid.png deleted file mode 100644 index f7d2e97..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/AlignmentGrid.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/ApplicationIcon.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/ApplicationIcon.png deleted file mode 100644 index 7d95d4e..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/ApplicationIcon.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileLarge.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileLarge.png deleted file mode 100644 index e0c59ac..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileLarge.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileMedium.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileMedium.png deleted file mode 100644 index e93b89d..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileMedium.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileSmall.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileSmall.png deleted file mode 100644 index 550b1b5..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/FlipCycleTileSmall.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/IconicTileMediumLarge.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/IconicTileMediumLarge.png deleted file mode 100644 index 686e6b5..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/IconicTileMediumLarge.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/IconicTileSmall.png b/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/IconicTileSmall.png deleted file mode 100644 index d4b5ede..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Assets/Tiles/IconicTileSmall.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/AppManifest.xaml b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/AppManifest.xaml deleted file mode 100644 index cb7a41f..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/AppManifest.xaml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/ApplicationIcon.png b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/ApplicationIcon.png deleted file mode 100644 index 7d95d4e..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/ApplicationIcon.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileLarge.png b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileLarge.png deleted file mode 100644 index e0c59ac..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileLarge.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileMedium.png b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileMedium.png deleted file mode 100644 index e93b89d..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileMedium.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileSmall.png b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileSmall.png deleted file mode 100644 index 550b1b5..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/FlipCycleTileSmall.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/IconicTileMediumLarge.png b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/IconicTileMediumLarge.png deleted file mode 100644 index 686e6b5..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/IconicTileMediumLarge.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/IconicTileSmall.png b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/IconicTileSmall.png deleted file mode 100644 index d4b5ede..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Assets/Tiles/IconicTileSmall.png and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/MyFirstApp.dll b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/MyFirstApp.dll deleted file mode 100644 index 945d969..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/MyFirstApp.dll and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/MyFirstApp_Debug_AnyCPU.xap b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/MyFirstApp_Debug_AnyCPU.xap deleted file mode 100644 index 3c59ec6..0000000 Binary files a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/MyFirstApp_Debug_AnyCPU.xap and /dev/null differ diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Properties/WMAppManifest.xml b/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Properties/WMAppManifest.xml deleted file mode 100644 index c4639aa..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp/Bin/Debug/Properties/WMAppManifest.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - Assets\ApplicationIcon.png - - - - - - - - - - - - - - Assets\Tiles\FlipCycleTileSmall.png - 0 - Assets\Tiles\FlipCycleTileMedium.png - MyFirstApp - - - - - - - - - - - - - - - - diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/LocalizedStrings.cs b/WindowsPhone/MyFirstApp/MyFirstApp/LocalizedStrings.cs deleted file mode 100644 index 63a8ef9..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp/LocalizedStrings.cs +++ /dev/null @@ -1,14 +0,0 @@ -using MyFirstApp.Resources; - -namespace MyFirstApp -{ - /// - /// Provides access to string resources. - /// - public class LocalizedStrings - { - private static AppResources _localizedResources = new AppResources(); - - public AppResources LocalizedResources { get { return _localizedResources; } } - } -} \ No newline at end of file diff --git a/WindowsPhone/MyFirstApp/MyFirstApp/MainPage.xaml b/WindowsPhone/MyFirstApp/MyFirstApp/MainPage.xaml deleted file mode 100644 index a1adb74..0000000 --- a/WindowsPhone/MyFirstApp/MyFirstApp/MainPage.xaml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - -