Permalink
Browse files

Initial commit

  • Loading branch information...
rmaclean committed Sep 5, 2014
1 parent 9f4242b commit 965c67405cd3f0c771ac8ed52b803fbe130dac73
Showing with 1,282 additions and 0 deletions.
  1. +60 −0 HeatherSpeedCrash.sln
  2. +9 −0 HeatherSpeedCrash/HeatherSpeedCrash.Shared/App.xaml
  3. +127 −0 HeatherSpeedCrash/HeatherSpeedCrash.Shared/App.xaml.cs
  4. +19 −0 HeatherSpeedCrash/HeatherSpeedCrash.Shared/HeatherSpeedCrash.Shared.projitems
  5. +12 −0 HeatherSpeedCrash/HeatherSpeedCrash.Shared/HeatherSpeedCrash.Shared.shproj
  6. BIN HeatherSpeedCrash/HeatherSpeedCrash.Windows/Assets/Logo.scale-100.png
  7. BIN HeatherSpeedCrash/HeatherSpeedCrash.Windows/Assets/SmallLogo.scale-100.png
  8. BIN HeatherSpeedCrash/HeatherSpeedCrash.Windows/Assets/SplashScreen.scale-100.png
  9. BIN HeatherSpeedCrash/HeatherSpeedCrash.Windows/Assets/StoreLogo.scale-100.png
  10. +23 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/BoolToBrush.cs
  11. +27 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/BoolToVisibility.cs
  12. +156 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/HeatherSpeedCrash.Windows.csproj
  13. BIN HeatherSpeedCrash/HeatherSpeedCrash.Windows/HeatherSpeedCrash.Windows_TemporaryKey.pfx
  14. +9 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/MainPage.xaml
  15. +36 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/MainPage.xaml.cs
  16. +41 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/Package.appxmanifest
  17. +143 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/PageLayout.cs
  18. +29 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/Properties/AssemblyInfo.cs
  19. +300 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/Stuff.xaml
  20. +31 −0 HeatherSpeedCrash/HeatherSpeedCrash.Windows/TextButton.cs
  21. BIN HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Assets/Logo.scale-240.png
  22. BIN HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Assets/SmallLogo.scale-240.png
  23. BIN HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Assets/SplashScreen.scale-240.png
  24. BIN HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Assets/Square71x71Logo.scale-240.png
  25. BIN HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Assets/StoreLogo.scale-240.png
  26. BIN HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Assets/WideLogo.scale-240.png
  27. +125 −0 HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/HeatherSpeedCrash.WindowsPhone.csproj
  28. +14 −0 HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/MainPage.xaml
  29. +48 −0 HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/MainPage.xaml.cs
  30. +44 −0 HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Package.appxmanifest
  31. +29 −0 HeatherSpeedCrash/HeatherSpeedCrash.WindowsPhone/Properties/AssemblyInfo.cs
View
@@ -0,0 +1,60 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30723.0
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "HeatherSpeedCrash", "HeatherSpeedCrash", "{F66E05E7-9632-4C86-BD29-1873EE7F8A1F}"
+EndProject
+Project("{D954291E-2A0B-460D-934E-DC6B0785DB48}") = "HeatherSpeedCrash.Shared", "HeatherSpeedCrash\HeatherSpeedCrash.Shared\HeatherSpeedCrash.Shared.shproj", "{0ADB2C20-A542-4796-83F7-BC81F605C08A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeatherSpeedCrash.Windows", "HeatherSpeedCrash\HeatherSpeedCrash.Windows\HeatherSpeedCrash.Windows.csproj", "{0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}"
+EndProject
+Global
+ GlobalSection(SharedMSBuildProjectFiles) = preSolution
+ HeatherSpeedCrash\HeatherSpeedCrash.Shared\HeatherSpeedCrash.Shared.projitems*{0090c59e-9059-4256-9fd6-0b3a1bdcaeb4}*SharedItemsImports = 4
+ HeatherSpeedCrash\HeatherSpeedCrash.Shared\HeatherSpeedCrash.Shared.projitems*{0adb2c20-a542-4796-83f7-bc81f605c08a}*SharedItemsImports = 13
+ EndGlobalSection
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|ARM = Debug|ARM
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Release|Any CPU = Release|Any CPU
+ Release|ARM = Release|ARM
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|ARM.ActiveCfg = Debug|ARM
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|ARM.Build.0 = Debug|ARM
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|ARM.Deploy.0 = Debug|ARM
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|x64.ActiveCfg = Debug|x64
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|x64.Build.0 = Debug|x64
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|x64.Deploy.0 = Debug|x64
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|x86.ActiveCfg = Debug|x86
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|x86.Build.0 = Debug|x86
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Debug|x86.Deploy.0 = Debug|x86
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|ARM.ActiveCfg = Release|ARM
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|ARM.Build.0 = Release|ARM
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|ARM.Deploy.0 = Release|ARM
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|x64.ActiveCfg = Release|x64
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|x64.Build.0 = Release|x64
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|x64.Deploy.0 = Release|x64
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|x86.ActiveCfg = Release|x86
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|x86.Build.0 = Release|x86
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(NestedProjects) = preSolution
+ {0ADB2C20-A542-4796-83F7-BC81F605C08A} = {F66E05E7-9632-4C86-BD29-1873EE7F8A1F}
+ {0090C59E-9059-4256-9FD6-0B3A1BDCAEB4} = {F66E05E7-9632-4C86-BD29-1873EE7F8A1F}
+ EndGlobalSection
+EndGlobal
@@ -0,0 +1,9 @@
+<Application x:Class="HeatherSpeedCrash.App" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="using:HeatherSpeedCrash">
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+ <ResourceDictionary Source="/Stuff.xaml" />
+ </ResourceDictionary.MergedDictionaries>
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
@@ -0,0 +1,127 @@
+namespace HeatherSpeedCrash
+{
+ using System;
+ using Windows.ApplicationModel;
+ using Windows.ApplicationModel.Activation;
+ using Windows.UI.Xaml;
+ using Windows.UI.Xaml.Controls;
+
+ /// <summary>
+ /// Provides application-specific behavior to supplement the default Application class.
+ /// </summary>
+ public sealed partial class App : Application
+ {
+ public static bool ThunderbirdsAreGo { get; set; }
+#if WINDOWS_PHONE_APP
+ private TransitionCollection transitions;
+#endif
+
+ /// <summary>
+ /// Initializes the singleton application object. This is the first line of authored code
+ /// executed, and as such is the logical equivalent of main() or WinMain().
+ /// </summary>
+ public App()
+ {
+ RunCounter = -1;
+ this.InitializeComponent();
+ this.Suspending += this.OnSuspending;
+ }
+
+ /// <summary>
+ /// Invoked when the application is launched normally by the end user. Other entry points
+ /// will be used when the application is launched to open a specific file, to display
+ /// search results, and so forth.
+ /// </summary>
+ /// <param name="e">Details about the launch request and process.</param>
+ protected override void OnLaunched(LaunchActivatedEventArgs e)
+ {
+#if DEBUG
+ if (System.Diagnostics.Debugger.IsAttached)
+ {
+ this.DebugSettings.EnableFrameRateCounter = true;
+ }
+#endif
+
+ Frame rootFrame = Window.Current.Content as Frame;
+
+ // Do not repeat app initialization when the Window already has content,
+ // just ensure that the window is active
+ if (rootFrame == null)
+ {
+ // Create a Frame to act as the navigation context and navigate to the first page
+ rootFrame = new Frame();
+
+ // TODO: change this value to a cache size that is appropriate for your application
+ rootFrame.CacheSize = 1;
+
+ if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
+ {
+ // TODO: Load state from previously suspended application
+ }
+
+ // Place the frame in the current Window
+ Window.Current.Content = rootFrame;
+ }
+
+ if (rootFrame.Content == null)
+ {
+#if WINDOWS_PHONE_APP
+ // Removes the turnstile navigation for startup.
+ if (rootFrame.ContentTransitions != null)
+ {
+ this.transitions = new TransitionCollection();
+ foreach (var c in rootFrame.ContentTransitions)
+ {
+ this.transitions.Add(c);
+ }
+ }
+
+ rootFrame.ContentTransitions = null;
+ rootFrame.Navigated += this.RootFrame_FirstNavigated;
+#endif
+
+ // When the navigation stack isn't restored navigate to the first page,
+ // configuring the new page by passing required information as a navigation
+ // parameter
+ if (!rootFrame.Navigate(typeof(MainPage), e.Arguments))
+ {
+ throw new Exception("Failed to create initial page");
+ }
+ }
+
+ // Ensure the current window is active
+ Window.Current.Activate();
+ }
+
+#if WINDOWS_PHONE_APP
+ /// <summary>
+ /// Restores the content transitions after the app has launched.
+ /// </summary>
+ /// <param name="sender">The object where the handler is attached.</param>
+ /// <param name="e">Details about the navigation event.</param>
+ private void RootFrame_FirstNavigated(object sender, NavigationEventArgs e)
+ {
+ var rootFrame = sender as Frame;
+ rootFrame.ContentTransitions = this.transitions ?? new TransitionCollection() { new NavigationThemeTransition() };
+ rootFrame.Navigated -= this.RootFrame_FirstNavigated;
+ }
+#endif
+
+ /// <summary>
+ /// Invoked when application execution is being suspended. Application state is saved
+ /// without knowing whether the application will be terminated or resumed with the contents
+ /// of memory still intact.
+ /// </summary>
+ /// <param name="sender">The source of the suspend request.</param>
+ /// <param name="e">Details about the suspend request.</param>
+ private void OnSuspending(object sender, SuspendingEventArgs e)
+ {
+ var deferral = e.SuspendingOperation.GetDeferral();
+
+ // TODO: Save application state and stop any background activity
+ deferral.Complete();
+ }
+
+ public static int RunCounter { get; set; }
+ }
+}
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
+ <HasSharedItems>true</HasSharedItems>
+ <SharedGUID>0adb2c20-a542-4796-83f7-bc81f605c08a</SharedGUID>
+ </PropertyGroup>
+ <PropertyGroup Label="Configuration">
+ <Import_RootNamespace>HeatherSpeedCrash</Import_RootNamespace>
+ </PropertyGroup>
+ <ItemGroup>
+ <ApplicationDefinition Include="$(MSBuildThisFileDirectory)App.xaml">
+ <SubType>Designer</SubType>
+ </ApplicationDefinition>
+ <Compile Include="$(MSBuildThisFileDirectory)App.xaml.cs">
+ <DependentUpon>App.xaml</DependentUpon>
+ </Compile>
+ </ItemGroup>
+</Project>
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>0adb2c20-a542-4796-83f7-bc81f605c08a</ProjectGuid>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.Default.props" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.Common.props" />
+ <PropertyGroup />
+ <Import Project="HeatherSpeedCrash.Shared.projitems" Label="Shared" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\CodeSharing\Microsoft.CodeSharing.CSharp.targets" />
+</Project>
@@ -0,0 +1,23 @@
+namespace HSA.converters
+{
+ using System;
+ using Windows.UI.Xaml.Data;
+ using Windows.UI.Xaml.Media;
+
+ public class BoolToBrush : IValueConverter
+ {
+ public SolidColorBrush FalseBrush { get; set; }
+
+ public SolidColorBrush TrueBrush { get; set; }
+
+ public object Convert(object value, Type targetType, object parameter, string language)
+ {
+ return (bool)value ? TrueBrush : FalseBrush;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, string language)
+ {
+ throw new System.NotImplementedException();
+ }
+ }
+}
@@ -0,0 +1,27 @@
+namespace HSA.converters
+{
+ using System;
+ using Windows.UI.Xaml;
+ using Windows.UI.Xaml.Data;
+
+ public class BoolToVisibility : IValueConverter
+ {
+ public bool InvertResult { get; set; }
+
+ public object Convert(object value, Type targetType, object parameter, string language)
+ {
+ var input = (bool)value;
+ if (InvertResult)
+ {
+ input = !input;
+ }
+
+ return input ? Visibility.Visible : Visibility.Collapsed;
+ }
+
+ public object ConvertBack(object value, Type targetType, object parameter, string language)
+ {
+ throw new System.NotImplementedException();
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 965c674

Please sign in to comment.