Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Windows 8 test apps

Creted some windows 8 test apps with WinJS and C#
  • Loading branch information...
commit f923b57f5830ee17685a1af38ae71f811a59d621 1 parent 1e6155c
@gergob authored
Showing with 5,529 additions and 0 deletions.
  1. +163 −0 .gitignore
  2. +46 −0 BlankApp/BlankApp.sln
  3. +20 −0 BlankApp/BlankApp/App.xaml
  4. +90 −0 BlankApp/BlankApp/App.xaml.cs
  5. BIN  BlankApp/BlankApp/Assets/Logo.png
  6. BIN  BlankApp/BlankApp/Assets/SmallLogo.png
  7. BIN  BlankApp/BlankApp/Assets/SplashScreen.png
  8. BIN  BlankApp/BlankApp/Assets/StoreLogo.png
  9. +151 −0 BlankApp/BlankApp/BlankApp.csproj
  10. BIN  BlankApp/BlankApp/BlankApp_TemporaryKey.pfx
  11. +1,829 −0 BlankApp/BlankApp/Common/StandardStyles.xaml
  12. +58 −0 BlankApp/BlankApp/MainPage.xaml
  13. +43 −0 BlankApp/BlankApp/MainPage.xaml.cs
  14. +42 −0 BlankApp/BlankApp/Package.appxmanifest
  15. +29 −0 BlankApp/BlankApp/Properties/AssemblyInfo.cs
  16. +46 −0 BlankAppJS/BlankAppJS.sln
  17. +84 −0 BlankAppJS/BlankAppJS/BlankAppJS.jsproj
  18. BIN  BlankAppJS/BlankAppJS/BlankAppJS_TemporaryKey.pfx
  19. +31 −0 BlankAppJS/BlankAppJS/css/default.css
  20. +30 −0 BlankAppJS/BlankAppJS/default.html
  21. BIN  BlankAppJS/BlankAppJS/images/logo.png
  22. BIN  BlankAppJS/BlankAppJS/images/smalllogo.png
  23. BIN  BlankAppJS/BlankAppJS/images/splashscreen.png
  24. BIN  BlankAppJS/BlankAppJS/images/storelogo.png
  25. +60 −0 BlankAppJS/BlankAppJS/js/default.js
  26. +48 −0 BlankAppJS/BlankAppJS/package.appxmanifest
  27. +46 −0 LifeCycleCS/LifeCycleCS.sln
  28. +20 −0 LifeCycleCS/LifeCycleCS/App.xaml
  29. +124 −0 LifeCycleCS/LifeCycleCS/App.xaml.cs
  30. BIN  LifeCycleCS/LifeCycleCS/Assets/Logo.png
  31. BIN  LifeCycleCS/LifeCycleCS/Assets/SmallLogo.png
  32. BIN  LifeCycleCS/LifeCycleCS/Assets/SplashScreen.png
  33. BIN  LifeCycleCS/LifeCycleCS/Assets/StoreLogo.png
  34. +1,829 −0 LifeCycleCS/LifeCycleCS/Common/StandardStyles.xaml
  35. +152 −0 LifeCycleCS/LifeCycleCS/LifeCycleCS.csproj
  36. BIN  LifeCycleCS/LifeCycleCS/LifeCycleCS_TemporaryKey.pfx
  37. +102 −0 LifeCycleCS/LifeCycleCS/MainPage.xaml
  38. +79 −0 LifeCycleCS/LifeCycleCS/MainPage.xaml.cs
  39. +27 −0 LifeCycleCS/LifeCycleCS/Package.appxmanifest
  40. +29 −0 LifeCycleCS/LifeCycleCS/Properties/AssemblyInfo.cs
  41. +20 −0 LifeCycleCS/LifeCycleCS/ViewModels/Contact.cs
  42. +46 −0 LifeCycleJS/LifeCycleJS.sln
  43. +84 −0 LifeCycleJS/LifeCycleJS/LifeCycleJS.jsproj
  44. BIN  LifeCycleJS/LifeCycleJS/LifeCycleJS_TemporaryKey.pfx
  45. +34 −0 LifeCycleJS/LifeCycleJS/css/default.css
  46. +40 −0 LifeCycleJS/LifeCycleJS/default.html
  47. BIN  LifeCycleJS/LifeCycleJS/images/logo.png
  48. BIN  LifeCycleJS/LifeCycleJS/images/smalllogo.png
  49. BIN  LifeCycleJS/LifeCycleJS/images/splashscreen.png
  50. BIN  LifeCycleJS/LifeCycleJS/images/storelogo.png
  51. +79 −0 LifeCycleJS/LifeCycleJS/js/default.js
  52. +48 −0 LifeCycleJS/LifeCycleJS/package.appxmanifest
View
163 .gitignore
@@ -0,0 +1,163 @@
+#################
+## Eclipse
+#################
+
+*.pydevproject
+.project
+.metadata
+bin/
+tmp/
+*.tmp
+*.bak
+*.swp
+*~.nib
+local.properties
+.classpath
+.settings/
+.loadpath
+
+# External tool builders
+.externalToolBuilders/
+
+# Locally stored "Eclipse launch configurations"
+*.launch
+
+# CDT-specific
+.cproject
+
+# PDT-specific
+.buildpath
+
+
+#################
+## Visual Studio
+#################
+
+## Ignore Visual Studio temporary files, build results, and
+## files generated by popular Visual Studio add-ons.
+
+# User-specific files
+*.suo
+*.user
+*.sln.docstates
+
+# Build results
+[Dd]ebug/
+[Rr]elease/
+*_i.c
+*_p.c
+*.ilk
+*.meta
+*.obj
+*.pch
+*.pdb
+*.pgc
+*.pgd
+*.rsp
+*.sbr
+*.tlb
+*.tli
+*.tlh
+*.tmp
+*.vspscc
+.builds
+*.dotCover
+
+## TODO: If you have NuGet Package Restore enabled, uncomment this
+#packages/
+
+# Visual C++ cache files
+ipch/
+*.aps
+*.ncb
+*.opensdf
+*.sdf
+
+# Visual Studio profiler
+*.psess
+*.vsp
+
+# ReSharper is a .NET coding add-in
+_ReSharper*
+
+# Installshield output folder
+[Ee]xpress
+
+# DocProject is a documentation generator add-in
+DocProject/buildhelp/
+DocProject/Help/*.HxT
+DocProject/Help/*.HxC
+DocProject/Help/*.hhc
+DocProject/Help/*.hhk
+DocProject/Help/*.hhp
+DocProject/Help/Html2
+DocProject/Help/html
+
+# Click-Once directory
+publish
+
+# Others
+[Bb]in
+[Oo]bj
+sql
+TestResults
+*.Cache
+ClientBin
+stylecop.*
+~$*
+*.dbmdl
+Generated_Code #added for RIA/Silverlight projects
+
+# Backup & report files from converting an old project file to a newer
+# Visual Studio version. Backup files are not needed, because we have git ;-)
+_UpgradeReport_Files/
+Backup*/
+UpgradeLog*.XML
+
+
+
+############
+## Windows
+############
+
+# Windows image file caches
+Thumbs.db
+
+# Folder config file
+Desktop.ini
+
+
+#############
+## Python
+#############
+
+*.py[co]
+
+# Packages
+*.egg
+*.egg-info
+dist
+build
+eggs
+parts
+bin
+var
+sdist
+develop-eggs
+.installed.cfg
+
+# Installer logs
+pip-log.txt
+
+# Unit test / coverage reports
+.coverage
+.tox
+
+#Translations
+*.mo
+
+#Mr Developer
+.mr.developer.cfg
+
+# Mac crap
+.DS_Store
View
46 BlankApp/BlankApp.sln
@@ -0,0 +1,46 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows 8
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BlankApp", "BlankApp\BlankApp.csproj", "{B5420AB5-65B2-4163-A2E5-99E164376F05}"
+EndProject
+Global
+ 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
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|ARM.ActiveCfg = Debug|ARM
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|ARM.Build.0 = Debug|ARM
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|ARM.Deploy.0 = Debug|ARM
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|x64.ActiveCfg = Debug|x64
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|x64.Build.0 = Debug|x64
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|x64.Deploy.0 = Debug|x64
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|x86.ActiveCfg = Debug|x86
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|x86.Build.0 = Debug|x86
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Debug|x86.Deploy.0 = Debug|x86
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|ARM.ActiveCfg = Release|ARM
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|ARM.Build.0 = Release|ARM
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|ARM.Deploy.0 = Release|ARM
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|x64.ActiveCfg = Release|x64
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|x64.Build.0 = Release|x64
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|x64.Deploy.0 = Release|x64
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|x86.ActiveCfg = Release|x86
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|x86.Build.0 = Release|x86
+ {B5420AB5-65B2-4163-A2E5-99E164376F05}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
20 BlankApp/BlankApp/App.xaml
@@ -0,0 +1,20 @@
+<Application
+ x:Class="BlankApp.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:BlankApp">
+
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+
+ <!--
+ Styles that define common aspects of the platform look and feel
+ Required by Visual Studio project and item templates
+ -->
+ <ResourceDictionary Source="Common/StandardStyles.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
View
90 BlankApp/BlankApp/App.xaml.cs
@@ -0,0 +1,90 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using Windows.ApplicationModel;
+using Windows.ApplicationModel.Activation;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
+
+namespace BlankApp
+{
+ /// <summary>
+ /// Provides application-specific behavior to supplement the default Application class.
+ /// </summary>
+ sealed partial class App : Application
+ {
+ /// <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()
+ {
+ this.InitializeComponent();
+ this.Suspending += 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="args">Details about the launch request and process.</param>
+ protected override void OnLaunched(LaunchActivatedEventArgs args)
+ {
+ 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();
+
+ if (args.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)
+ {
+ // 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), args.Arguments))
+ {
+ throw new Exception("Failed to create initial page");
+ }
+ }
+ // Ensure the current window is active
+ Window.Current.Activate();
+ }
+
+ /// <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();
+ }
+ }
+}
View
BIN  BlankApp/BlankApp/Assets/Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  BlankApp/BlankApp/Assets/SmallLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  BlankApp/BlankApp/Assets/SplashScreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  BlankApp/BlankApp/Assets/StoreLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
151 BlankApp/BlankApp/BlankApp.csproj
@@ -0,0 +1,151 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{B5420AB5-65B2-4163-A2E5-99E164376F05}</ProjectGuid>
+ <OutputType>AppContainerExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>BlankApp</RootNamespace>
+ <AssemblyName>BlankApp</AssemblyName>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PackageCertificateKeyFile>BlankApp_TemporaryKey.pfx</PackageCertificateKeyFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\ARM\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>ARM</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <OutputPath>bin\ARM\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>ARM</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x86\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <ItemGroup>
+ <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="App.xaml.cs">
+ <DependentUpon>App.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="MainPage.xaml.cs">
+ <DependentUpon>MainPage.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <AppxManifest Include="Package.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <None Include="BlankApp_TemporaryKey.pfx" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Assets\Logo.png" />
+ <Content Include="Assets\SmallLogo.png" />
+ <Content Include="Assets\SplashScreen.png" />
+ <Content Include="Assets\StoreLogo.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <ApplicationDefinition Include="App.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </ApplicationDefinition>
+ <Page Include="Common\StandardStyles.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="MainPage.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ </ItemGroup>
+ <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
+ <VisualStudioVersion>11.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
BIN  BlankApp/BlankApp/BlankApp_TemporaryKey.pfx
Binary file not shown
View
1,829 BlankApp/BlankApp/Common/StandardStyles.xaml
1,829 additions, 0 deletions not shown
View
58 BlankApp/BlankApp/MainPage.xaml
@@ -0,0 +1,58 @@
+<Page
+ x:Class="BlankApp.MainPage"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:BlankApp"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+
+ <Page.Resources>
+ <x:String x:Key="AppName">Hello Windows 8 !</x:String>
+ <x:String x:Key="q1">What is your name?</x:String>
+ <x:String x:Key="btn1Text">Say Hello...</x:String>
+ </Page.Resources>
+
+ <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
+ Style="{StaticResource LayoutRootStyle}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="140" />
+ <RowDefinition />
+ </Grid.RowDefinitions>
+
+ <Grid Grid.Row="0">
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="Auto" />
+ <ColumnDefinition Width="*" />
+ </Grid.ColumnDefinitions>
+ <Button x:Name="btnBack"
+ Grid.Column="0"
+ Style="{StaticResource BackButtonStyle}" />
+ <TextBlock x:Name="txtAppName"
+ Grid.Column="1"
+ Text="{StaticResource AppName}"
+ Style="{StaticResource PageHeaderTextStyle}" />
+
+
+ </Grid>
+ <StackPanel Grid.Row="1"
+ Margin="120,30,0,0"
+ Orientation="Vertical">
+
+ <TextBlock Style="{StaticResource BasicTextStyle}"
+ Text="{StaticResource q1}" />
+ <StackPanel Orientation="Horizontal">
+ <TextBox x:Name="txtName"
+ Width="350"
+ HorizontalAlignment="Left" />
+ <Button Content="{StaticResource btn1Text}"
+ Margin="10,0,0,0"
+ Click="Button_Click_1">
+
+ </Button>
+ </StackPanel>
+ <TextBlock x:Name="txtGreeting" Style="{StaticResource BasicTextStyle}" />
+ </StackPanel>
+
+ </Grid>
+</Page>
View
43 BlankApp/BlankApp/MainPage.xaml.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
+
+namespace BlankApp
+{
+ /// <summary>
+ /// An empty page that can be used on its own or navigated to within a Frame.
+ /// </summary>
+ public sealed partial class MainPage : Page
+ {
+ public MainPage()
+ {
+ this.InitializeComponent();
+ }
+
+ /// <summary>
+ /// Invoked when this page is about to be displayed in a Frame.
+ /// </summary>
+ /// <param name="e">Event data that describes how this page was reached. The Parameter
+ /// property is typically used to configure the page.</param>
+ protected override void OnNavigatedTo(NavigationEventArgs e)
+ {
+ }
+
+ private void Button_Click_1(object sender, RoutedEventArgs e)
+ {
+ this.txtGreeting.Text = "Hello " + txtName.Text + " !!!";
+ }
+ }
+}
View
42 BlankApp/BlankApp/Package.appxmanifest
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
+
+ <Identity Name="42676f9f-5d15-44a6-896b-4a7f42b87038"
+ Publisher="CN=Gergo"
+ Version="1.0.0.0" />
+
+ <Properties>
+ <DisplayName>BlankApp</DisplayName>
+ <PublisherDisplayName>Gergo</PublisherDisplayName>
+ <Logo>Assets\StoreLogo.png</Logo>
+ </Properties>
+
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+
+ <Resources>
+ <Resource Language="x-generate"/>
+ </Resources>
+
+ <Applications>
+ <Application Id="App"
+ Executable="$targetnametoken$.exe"
+ EntryPoint="BlankApp.App">
+ <VisualElements
+ DisplayName="BlankApp"
+ Logo="Assets\Logo.png"
+ SmallLogo="Assets\SmallLogo.png"
+ Description="BlankApp"
+ ForegroundText="light"
+ BackgroundColor="#464646">
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="Assets\SplashScreen.png" />
+ </VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+</Package>
View
29 BlankApp/BlankApp/Properties/AssemblyInfo.cs
@@ -0,0 +1,29 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 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("BlankApp")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("BlankApp")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 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: ComVisible(false)]
View
46 BlankAppJS/BlankAppJS.sln
@@ -0,0 +1,46 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows 8
+Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "BlankAppJS", "BlankAppJS\BlankAppJS.jsproj", "{09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}"
+EndProject
+Global
+ 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
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|ARM.ActiveCfg = Debug|ARM
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|ARM.Build.0 = Debug|ARM
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|ARM.Deploy.0 = Debug|ARM
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|x64.ActiveCfg = Debug|x64
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|x64.Build.0 = Debug|x64
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|x64.Deploy.0 = Debug|x64
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|x86.ActiveCfg = Debug|x86
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|x86.Build.0 = Debug|x86
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Debug|x86.Deploy.0 = Debug|x86
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|Any CPU.Build.0 = Release|Any CPU
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|ARM.ActiveCfg = Release|ARM
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|ARM.Build.0 = Release|ARM
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|ARM.Deploy.0 = Release|ARM
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|x64.ActiveCfg = Release|x64
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|x64.Build.0 = Release|x64
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|x64.Deploy.0 = Release|x64
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|x86.ActiveCfg = Release|x86
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|x86.Build.0 = Release|x86
+ {09369A2F-BAF6-44AE-A0FA-6E71CCDBB8BF}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
84 BlankAppJS/BlankAppJS/BlankAppJS.jsproj
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|AnyCPU">
+ <Configuration>Debug</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|ARM">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x86">
+ <Configuration>Debug</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|AnyCPU">
+ <Configuration>Release</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM">
+ <Configuration>Release</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x86">
+ <Configuration>Release</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>09369a2f-baf6-44ae-a0fa-6e71ccdbb8bf</ProjectGuid>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0'">
+ <VisualStudioVersion>11.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
+ <PropertyGroup>
+ <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
+ <TargetPlatformVersion>8.0</TargetPlatformVersion>
+ <DefaultLanguage>en-US</DefaultLanguage>
+
+ <PackageCertificateKeyFile>BlankAppJS_TemporaryKey.pfx</PackageCertificateKeyFile>
+
+ </PropertyGroup>
+ <ItemGroup>
+ <AppxManifest Include="package.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <Content Include="default.html" />
+ <Content Include="images\logo.png" />
+ <Content Include="images\smalllogo.png" />
+ <Content Include="images\splashscreen.png" />
+ <Content Include="images\storelogo.png" />
+ <Content Include="js\default.js" />
+ <Content Include="css\default.css" />
+
+ <None Include="BlankAppJS_TemporaryKey.pfx" />
+
+ </ItemGroup>
+ <ItemGroup>
+ <SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
+ <!-- To modify your build process, add your task inside one of the targets below then uncomment
+ that target and the DisableFastUpToDateCheck PropertyGroup.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ <PropertyGroup>
+ <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
+ </PropertyGroup>
+ -->
+</Project>
View
BIN  BlankAppJS/BlankAppJS/BlankAppJS_TemporaryKey.pfx
Binary file not shown
View
31 BlankAppJS/BlankAppJS/css/default.css
@@ -0,0 +1,31 @@
+body {
+}
+
+.headerClass {
+ margin-left:120px;
+ margin-top:45px;
+}
+
+.mainContent {
+ margin-top:31px;
+ margin-left:120px;
+ margin-bottom:50px;
+}
+
+#divGreeting {
+ height:20px;
+ margin-bottom:40px;
+
+}
+
+@media screen and (-ms-view-state: fullscreen-landscape) {
+}
+
+@media screen and (-ms-view-state: filled) {
+}
+
+@media screen and (-ms-view-state: snapped) {
+}
+
+@media screen and (-ms-view-state: fullscreen-portrait) {
+}
View
30 BlankAppJS/BlankAppJS/default.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>BlankAppJS</title>
+
+ <!-- WinJS references -->
+ <link href="//Microsoft.WinJS.1.0/css/ui-light.css" rel="stylesheet" />
+ <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
+ <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
+
+ <!-- BlankAppJS references -->
+ <link href="/css/default.css" rel="stylesheet" />
+ <script src="/js/default.js"></script>
+</head>
+<body>
+ <h1 class="headerClass">Hello WinJS World!</h1>
+ <div class="mainContent">
+ <p>What is your name?</p>
+ <input type="text" id="txtName" />
+ <button id="btnSayHello">Say Hello...</button>
+ <div id="divGreeting"></div>
+ <label for="ratingControl">Please rate this greeting:</label>
+ <div data-win-control="WinJS.UI.Rating" id="ratingControl">
+ </div>
+ <div id="rating" ></div>
+
+ </div>
+</body>
+</html>
View
BIN  BlankAppJS/BlankAppJS/images/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  BlankAppJS/BlankAppJS/images/smalllogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  BlankAppJS/BlankAppJS/images/splashscreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  BlankAppJS/BlankAppJS/images/storelogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
60 BlankAppJS/BlankAppJS/js/default.js
@@ -0,0 +1,60 @@
+// For an introduction to the Blank template, see the following documentation:
+// http://go.microsoft.com/fwlink/?LinkId=232509
+(function () {
+ "use strict";
+
+ WinJS.Binding.optimizeBindingReferences = true;
+
+ var app = WinJS.Application;
+ var activation = Windows.ApplicationModel.Activation;
+
+ app.onactivated = function (args) {
+ if (args.detail.kind === activation.ActivationKind.launch) {
+ if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
+ // TODO: This application has been newly launched. Initialize
+ // your application here.
+ } else {
+ // TODO: This application has been reactivated from suspension.
+ // Restore application state here.
+ }
+ args.setPromise(WinJS.UI.processAll().then(function () {
+ var btnSayHello = document.getElementById("btnSayHello");
+ btnSayHello.addEventListener("click", btnSayHelo_ClickHandler, false);
+
+ var ratingControlDiv = document.getElementById("ratingControl");
+ var ratingControl = ratingControlDiv.winControl;
+
+ ratingControl.addEventListener("change", rating_ClickHandler, false);
+ }));
+ }
+ };
+
+ app.oncheckpoint = function (args) {
+ // TODO: This application is about to be suspended. Save any state
+ // that needs to persist across suspensions here. You might use the
+ // WinJS.Application.sessionState object, which is automatically
+ // saved and restored across suspension. If you need to complete an
+ // asynchronous operation before your application is suspended, call
+ // args.setPromise().
+ };
+
+ function btnSayHelo_ClickHandler(eventInfo) {
+ var txtName = document.getElementById("txtName");
+ if (txtName) {
+ var userName = txtName.value;
+ var divForGreeting = document.getElementById("divGreeting");
+ if (divForGreeting) {
+ divForGreeting.innerText = "Hello " + userName + " !!";
+ }
+ }
+ }
+
+ function rating_ClickHandler(eventInfo) {
+
+ var divForRating = document.getElementById("rating");
+ divForRating.innerText = eventInfo.detail.tentativeRating;
+
+ }
+
+ app.start();
+})();
View
48 BlankAppJS/BlankAppJS/package.appxmanifest
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
+
+ <Identity
+ Name="09369a2f-baf6-44ae-a0fa-6e71ccdbb8bf"
+ Version="1.0.0.0"
+ Publisher="CN=Gergo" />
+
+ <Properties>
+ <DisplayName>BlankAppJS</DisplayName>
+ <PublisherDisplayName>Gergo</PublisherDisplayName>
+ <Logo>images\storelogo.png</Logo>
+ </Properties>
+
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+
+ <Resources>
+ <Resource Language="x-generate" />
+ </Resources>
+
+ <Applications>
+ <Application
+ Id="App"
+ StartPage="default.html">
+
+ <VisualElements
+ DisplayName="BlankAppJS"
+ Logo="images\logo.png"
+ SmallLogo="images\smalllogo.png"
+ Description="BlankAppJS"
+ ForegroundText="light"
+ BackgroundColor="#464646">
+
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="images\splashscreen.png" />
+
+ </VisualElements>
+ </Application>
+ </Applications>
+
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+
+</Package>
View
46 LifeCycleCS/LifeCycleCS.sln
@@ -0,0 +1,46 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows 8
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LifeCycleCS", "LifeCycleCS\LifeCycleCS.csproj", "{A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}"
+EndProject
+Global
+ 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
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|ARM.ActiveCfg = Debug|ARM
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|ARM.Build.0 = Debug|ARM
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|ARM.Deploy.0 = Debug|ARM
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|x64.ActiveCfg = Debug|x64
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|x64.Build.0 = Debug|x64
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|x64.Deploy.0 = Debug|x64
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|x86.ActiveCfg = Debug|x86
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|x86.Build.0 = Debug|x86
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Debug|x86.Deploy.0 = Debug|x86
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|ARM.ActiveCfg = Release|ARM
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|ARM.Build.0 = Release|ARM
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|ARM.Deploy.0 = Release|ARM
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|x64.ActiveCfg = Release|x64
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|x64.Build.0 = Release|x64
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|x64.Deploy.0 = Release|x64
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|x86.ActiveCfg = Release|x86
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|x86.Build.0 = Release|x86
+ {A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
20 LifeCycleCS/LifeCycleCS/App.xaml
@@ -0,0 +1,20 @@
+<Application
+ x:Class="LifeCycleCS.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:LifeCycleCS">
+
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+
+ <!--
+ Styles that define common aspects of the platform look and feel
+ Required by Visual Studio project and item templates
+ -->
+ <ResourceDictionary Source="Common/StandardStyles.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
View
124 LifeCycleCS/LifeCycleCS/App.xaml.cs
@@ -0,0 +1,124 @@
+using LifeCycleCS.ViewModels;
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Xml.Serialization;
+using Windows.ApplicationModel;
+using Windows.ApplicationModel.Activation;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.Storage;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
+
+namespace LifeCycleCS
+{
+ /// <summary>
+ /// Provides application-specific behavior to supplement the default Application class.
+ /// </summary>
+ sealed partial class App : Application
+ {
+ public const string CONTACT_INFO = "ContactInfo";
+ /// <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()
+ {
+ this.InitializeComponent();
+ this.Suspending += OnSuspending;
+ }
+ Contact recentContact = null;
+ /// <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="args">Details about the launch request and process.</param>
+ protected override void OnLaunched(LaunchActivatedEventArgs args)
+ {
+ 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();
+
+ if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
+ {
+ //TODO: Load state from previously suspended application
+
+ var currentLocalSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
+ recentContact = new Contact();
+ recentContact.UserName = currentLocalSettings.Values["userName"].ToString();
+ recentContact.FirstName = currentLocalSettings.Values["firstName"].ToString();
+ recentContact.LastName = currentLocalSettings.Values["lastName"].ToString();
+
+ }
+
+ // Place the frame in the current Window
+ Window.Current.Content = rootFrame;
+ }
+
+ if (rootFrame.Content == null)
+ {
+ // 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), args.Arguments))
+ {
+ throw new Exception("Failed to create initial page");
+ }
+ else
+ {
+ var currentView = rootFrame.Content as MainPage;
+ if (currentView != null)
+ {
+ currentView.UserName = recentContact.UserName;
+ currentView.FirstName = recentContact.FirstName;
+ currentView.LastName = recentContact.LastName;
+ }
+ }
+ }
+ // Ensure the current window is active
+ Window.Current.Activate();
+ }
+
+ /// <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
+
+ Frame rootFrame = Window.Current.Content as Frame;
+ var currentView = rootFrame.Content as MainPage;
+ if (currentView != null)
+ {
+ var currentLocalSettings = Windows.Storage.ApplicationData.Current.LocalSettings;
+
+ currentLocalSettings.Values["userName"] = currentView.UserName;
+ currentLocalSettings.Values["firstName"] = currentView.FirstName;
+ currentLocalSettings.Values["lastName"] = currentView.LastName;
+
+ }
+
+ deferral.Complete();
+ }
+ }
+}
View
BIN  LifeCycleCS/LifeCycleCS/Assets/Logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  LifeCycleCS/LifeCycleCS/Assets/SmallLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  LifeCycleCS/LifeCycleCS/Assets/SplashScreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  LifeCycleCS/LifeCycleCS/Assets/StoreLogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
1,829 LifeCycleCS/LifeCycleCS/Common/StandardStyles.xaml
1,829 additions, 0 deletions not shown
View
152 LifeCycleCS/LifeCycleCS/LifeCycleCS.csproj
@@ -0,0 +1,152 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{A9C15F86-CCBF-439F-BEAC-F80D7AB68DA5}</ProjectGuid>
+ <OutputType>AppContainerExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>LifeCycleCS</RootNamespace>
+ <AssemblyName>LifeCycleCS</AssemblyName>
+ <DefaultLanguage>en-US</DefaultLanguage>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <PackageCertificateKeyFile>LifeCycleCS_TemporaryKey.pfx</PackageCertificateKeyFile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <PlatformTarget>AnyCPU</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\ARM\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>ARM</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
+ <OutputPath>bin\ARM\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>ARM</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x64\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
+ <OutputPath>bin\x64\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x64</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
+ <DebugSymbols>true</DebugSymbols>
+ <OutputPath>bin\x86\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>full</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
+ <OutputPath>bin\x86\Release\</OutputPath>
+ <DefineConstants>TRACE;NETFX_CORE</DefineConstants>
+ <Optimize>true</Optimize>
+ <NoWarn>;2008</NoWarn>
+ <DebugType>pdbonly</DebugType>
+ <PlatformTarget>x86</PlatformTarget>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
+ <ErrorReport>prompt</ErrorReport>
+ <Prefer32Bit>true</Prefer32Bit>
+ </PropertyGroup>
+ <ItemGroup>
+ <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="App.xaml.cs">
+ <DependentUpon>App.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="MainPage.xaml.cs">
+ <DependentUpon>MainPage.xaml</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <Compile Include="ViewModels\Contact.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <AppxManifest Include="Package.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <None Include="LifeCycleCS_TemporaryKey.pfx" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Assets\Logo.png" />
+ <Content Include="Assets\SmallLogo.png" />
+ <Content Include="Assets\SplashScreen.png" />
+ <Content Include="Assets\StoreLogo.png" />
+ </ItemGroup>
+ <ItemGroup>
+ <ApplicationDefinition Include="App.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </ApplicationDefinition>
+ <Page Include="Common\StandardStyles.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Page Include="MainPage.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ </ItemGroup>
+ <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
+ <VisualStudioVersion>11.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
View
BIN  LifeCycleCS/LifeCycleCS/LifeCycleCS_TemporaryKey.pfx
Binary file not shown
View
102 LifeCycleCS/LifeCycleCS/MainPage.xaml
@@ -0,0 +1,102 @@
+<Page
+ x:Class="LifeCycleCS.MainPage"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:local="using:LifeCycleCS"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d">
+ <Page.Resources>
+ <Style x:Key="GreenHeaderTextStyle"
+ TargetType="TextBlock"
+ BasedOn="{StaticResource HeaderTextStyle}">
+ <Setter Property="Foreground" Value="Green" />
+ <Setter Property="FontSize" Value="48" />
+ </Style>
+ </Page.Resources>
+
+ <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="100" />
+ <RowDefinition Height="*"/>
+ </Grid.RowDefinitions>
+ <TextBlock Grid.Row="0"
+ Margin="120,0,0,0"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"
+ Style="{StaticResource HeaderTextStyle}"
+ Text="Application LifeCycle in C#"/>
+ <Grid Grid.Row="1"
+ Margin="120,0,0,0">
+ <Grid.RowDefinitions>
+ <RowDefinition Height="40" />
+ <RowDefinition Height="40" />
+ <RowDefinition Height="40" />
+ <RowDefinition Height="40" />
+ <RowDefinition Height="*" />
+ </Grid.RowDefinitions>
+ <Grid.ColumnDefinitions>
+ <ColumnDefinition Width="150" />
+ <ColumnDefinition Width="*" />
+ </Grid.ColumnDefinitions>
+ <!--USER NAME-->
+ <TextBlock Grid.Row="0"
+ Grid.Column="0"
+ Text="User Name:"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"
+ Style="{StaticResource BasicTextStyle}" />
+ <TextBox Grid.Row="0"
+ Grid.Column="1"
+ x:Name="txtUserName"
+ Width="200"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"/>
+ <!--FIRST NAME-->
+ <TextBlock Grid.Row="1"
+ Grid.Column="0"
+ Text="First Name:"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"
+ Style="{StaticResource BasicTextStyle}" />
+ <TextBox Grid.Row="1"
+ Grid.Column="1"
+ x:Name="txtFirstName"
+ Width="200"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"/>
+
+ <!--LAST NAME-->
+ <TextBlock Grid.Row="2"
+ Grid.Column="0"
+ Text="Last Name:"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"
+ Style="{StaticResource BasicTextStyle}" />
+ <TextBox Grid.Row="2"
+ Grid.Column="1"
+ x:Name="txtLastName"
+ Width="200"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"/>
+
+ <!--BUTTON-->
+ <Button x:Name="btnSayHello"
+ Grid.Row="3"
+ Grid.Column="1"
+ Content="Say Hello..."
+ Width="120"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Left"
+ Click="btnSayHello_Click_1"/>
+
+ <TextBlock Grid.Row="4"
+ Grid.Column="0"
+ Grid.ColumnSpan="2"
+ VerticalAlignment="Center"
+ HorizontalAlignment="Center"
+ x:Name="lblGreeting"
+ Style="{StaticResource GreenHeaderTextStyle}" />
+ </Grid>
+ </Grid>
+</Page>
View
79 LifeCycleCS/LifeCycleCS/MainPage.xaml.cs
@@ -0,0 +1,79 @@
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using Windows.Foundation;
+using Windows.Foundation.Collections;
+using Windows.UI.Xaml;
+using Windows.UI.Xaml.Controls;
+using Windows.UI.Xaml.Controls.Primitives;
+using Windows.UI.Xaml.Data;
+using Windows.UI.Xaml.Input;
+using Windows.UI.Xaml.Media;
+using Windows.UI.Xaml.Navigation;
+
+// The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
+
+namespace LifeCycleCS
+{
+ /// <summary>
+ /// An empty page that can be used on its own or navigated to within a Frame.
+ /// </summary>
+ public sealed partial class MainPage : Page
+ {
+ public MainPage()
+ {
+ this.InitializeComponent();
+ }
+
+ /// <summary>
+ /// Invoked when this page is about to be displayed in a Frame.
+ /// </summary>
+ /// <param name="e">Event data that describes how this page was reached. The Parameter
+ /// property is typically used to configure the page.</param>
+ protected override void OnNavigatedTo(NavigationEventArgs e)
+ {
+ }
+
+ private void btnSayHello_Click_1(object sender, RoutedEventArgs e)
+ {
+ this.lblGreeting.Text = string.Format("Hi {0},{1},{4}Welcome Mr./Mrs. {2} {3}!", this.txtUserName.Text, Environment.NewLine, this.txtFirstName.Text, this.txtLastName.Text, Environment.NewLine);
+ }
+
+ public string UserName
+ {
+ get
+ {
+ return this.txtUserName.Text;
+ }
+ set
+ {
+ this.txtUserName.Text = value;
+ }
+ }
+
+ public string FirstName
+ {
+ get
+ {
+ return this.txtFirstName.Text;
+ }
+ set
+ {
+ this.txtFirstName.Text = value;
+ }
+ }
+
+ public string LastName
+ {
+ get
+ {
+ return this.txtLastName.Text;
+ }
+ set
+ {
+ this.txtLastName.Text = value;
+ }
+ }
+ }
+}
View
27 LifeCycleCS/LifeCycleCS/Package.appxmanifest
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
+ <Identity Name="b706f9d8-2616-4f8a-9809-e30f2c511d9b" Publisher="CN=Gergo" Version="1.0.0.0" />
+ <Properties>
+ <DisplayName>LifeCycleCS</DisplayName>
+ <PublisherDisplayName>Gergo</PublisherDisplayName>
+ <Logo>Assets\StoreLogo.png</Logo>
+ </Properties>
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+ <Resources>
+ <Resource Language="x-generate" />
+ </Resources>
+ <Applications>
+ <Application Id="App" Executable="$targetnametoken$.exe" EntryPoint="LifeCycleCS.App">
+ <VisualElements DisplayName="LifeCycleCS" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="LifeCycleCS" ForegroundText="light" BackgroundColor="#464646">
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="Assets\SplashScreen.png" />
+ </VisualElements>
+ </Application>
+ </Applications>
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+</Package>
View
29 LifeCycleCS/LifeCycleCS/Properties/AssemblyInfo.cs
@@ -0,0 +1,29 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// 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("LifeCycleCS")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("LifeCycleCS")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 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: ComVisible(false)]
View
20 LifeCycleCS/LifeCycleCS/ViewModels/Contact.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace LifeCycleCS.ViewModels
+{
+ public class Contact
+ {
+ public Contact()
+ {
+
+ }
+
+ public string UserName { get; set; }
+ public string FirstName { get; set; }
+ public string LastName { get; set; }
+ }
+}
View
46 LifeCycleJS/LifeCycleJS.sln
@@ -0,0 +1,46 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Express 2012 for Windows 8
+Project("{262852C6-CD72-467D-83FE-5EEB1973A190}") = "LifeCycleJS", "LifeCycleJS\LifeCycleJS.jsproj", "{9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}"
+EndProject
+Global
+ 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
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|ARM.ActiveCfg = Debug|ARM
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|ARM.Build.0 = Debug|ARM
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|ARM.Deploy.0 = Debug|ARM
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|x64.ActiveCfg = Debug|x64
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|x64.Build.0 = Debug|x64
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|x64.Deploy.0 = Debug|x64
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|x86.ActiveCfg = Debug|x86
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|x86.Build.0 = Debug|x86
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Debug|x86.Deploy.0 = Debug|x86
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|Any CPU.Deploy.0 = Release|Any CPU
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|ARM.ActiveCfg = Release|ARM
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|ARM.Build.0 = Release|ARM
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|ARM.Deploy.0 = Release|ARM
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|x64.ActiveCfg = Release|x64
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|x64.Build.0 = Release|x64
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|x64.Deploy.0 = Release|x64
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|x86.ActiveCfg = Release|x86
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|x86.Build.0 = Release|x86
+ {9CE6B650-18E8-4BB9-9070-1E361D4EEB8A}.Release|x86.Deploy.0 = Release|x86
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
View
84 LifeCycleJS/LifeCycleJS/LifeCycleJS.jsproj
@@ -0,0 +1,84 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <ItemGroup Label="ProjectConfigurations">
+ <ProjectConfiguration Include="Debug|AnyCPU">
+ <Configuration>Debug</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|ARM">
+ <Configuration>Debug</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x64">
+ <Configuration>Debug</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Debug|x86">
+ <Configuration>Debug</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|AnyCPU">
+ <Configuration>Release</Configuration>
+ <Platform>AnyCPU</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|ARM">
+ <Configuration>Release</Configuration>
+ <Platform>ARM</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x64">
+ <Configuration>Release</Configuration>
+ <Platform>x64</Platform>
+ </ProjectConfiguration>
+ <ProjectConfiguration Include="Release|x86">
+ <Configuration>Release</Configuration>
+ <Platform>x86</Platform>
+ </ProjectConfiguration>
+ </ItemGroup>
+ <PropertyGroup Label="Globals">
+ <ProjectGuid>9ce6b650-18e8-4bb9-9070-1e361d4eeb8a</ProjectGuid>
+ </PropertyGroup>
+ <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0'">
+ <VisualStudioVersion>11.0</VisualStudioVersion>
+ </PropertyGroup>
+ <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).Default.props" />
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).props" />
+ <PropertyGroup>
+ <TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
+ <TargetPlatformVersion>8.0</TargetPlatformVersion>
+ <DefaultLanguage>en-US</DefaultLanguage>
+
+ <PackageCertificateKeyFile>LifeCycleJS_TemporaryKey.pfx</PackageCertificateKeyFile>
+
+ </PropertyGroup>
+ <ItemGroup>
+ <AppxManifest Include="package.appxmanifest">
+ <SubType>Designer</SubType>
+ </AppxManifest>
+ <Content Include="default.html" />
+ <Content Include="images\logo.png" />
+ <Content Include="images\smalllogo.png" />
+ <Content Include="images\splashscreen.png" />
+ <Content Include="images\storelogo.png" />
+ <Content Include="js\default.js" />
+ <Content Include="css\default.css" />
+
+ <None Include="LifeCycleJS_TemporaryKey.pfx" />
+
+ </ItemGroup>
+ <ItemGroup>
+ <SDKReference Include="Microsoft.WinJS.1.0, Version=1.0" />
+ </ItemGroup>
+ <Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\$(WMSJSProjectDirectory)\Microsoft.VisualStudio.$(WMSJSProject).targets" />
+ <!-- To modify your build process, add your task inside one of the targets below then uncomment
+ that target and the DisableFastUpToDateCheck PropertyGroup.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ <PropertyGroup>
+ <DisableFastUpToDateCheck>true</DisableFastUpToDateCheck>
+ </PropertyGroup>
+ -->
+</Project>
View
BIN  LifeCycleJS/LifeCycleJS/LifeCycleJS_TemporaryKey.pfx
Binary file not shown
View
34 LifeCycleJS/LifeCycleJS/css/default.css
@@ -0,0 +1,34 @@
+
+.header {
+ margin-left:120px;
+ margin-top:45px;
+}
+
+.mainContent {
+ margin-left:125px;
+ margin-top:30px;
+ margin-bottom:35px;
+}
+
+.box {
+ padding:2px;
+}
+
+.label {
+ margin-right:30px;
+}
+
+body {
+}
+
+@media screen and (-ms-view-state: fullscreen-landscape) {
+}
+
+@media screen and (-ms-view-state: filled) {
+}
+
+@media screen and (-ms-view-state: snapped) {
+}
+
+@media screen and (-ms-view-state: fullscreen-portrait) {
+}
View
40 LifeCycleJS/LifeCycleJS/default.html
@@ -0,0 +1,40 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>LifeCycleJS</title>
+
+ <!-- WinJS references -->
+ <link href="//Microsoft.WinJS.1.0/css/ui-dark.css" rel="stylesheet" />
+ <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
+ <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>
+
+ <!-- LifeCycleJS references -->
+ <link href="/css/default.css" rel="stylesheet" />
+ <script src="/js/default.js"></script>
+</head>
+<body>
+ <h1 class="header">Saving Application Data</h1>
+ <div class="mainContent">
+ <h2>Contact Information</h2>
+ <div class="box">
+ <label id="lblUserName" class="label">User Name:</label>
+ <input id="txtUserName" type="text" placeholder="enter your User Name" />
+ </div>
+ <div class="box">
+ <label id="lblFirstName" class="label">First Name:</label>
+ <input id="txtFirstName" type="text" placeholder="enter your First Name" />
+ </div>
+ <div class ="box">
+ <label id="lblLastName" class="label">Last Name:</label>
+ <input id="txtLastName" type="text" placeholder="enter your Last Name" />
+ </div>
+ <input id="btnSaveData" type="button" value="Save Data">
+ <div>
+ <label id="lblDataSaved"></label>
+ </div>
+ </div>
+
+
+</body>
+</html>
View
BIN  LifeCycleJS/LifeCycleJS/images/logo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  LifeCycleJS/LifeCycleJS/images/smalllogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  LifeCycleJS/LifeCycleJS/images/splashscreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN  LifeCycleJS/LifeCycleJS/images/storelogo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
79 LifeCycleJS/LifeCycleJS/js/default.js
@@ -0,0 +1,79 @@
+// For an introduction to the Blank template, see the following documentation:
+// http://go.microsoft.com/fwlink/?LinkId=232509
+(function () {
+ "use strict";
+
+ WinJS.Binding.optimizeBindingReferences = true;
+
+ var app = WinJS.Application;
+ var activation = Windows.ApplicationModel.Activation;
+
+ app.onactivated = function (args) {
+ if (args.detail.kind === activation.ActivationKind.launch) {
+ if (args.detail.previousExecutionState !== activation.ApplicationExecutionState.terminated) {
+ // TODO: This application has been newly launched. Initialize
+ // your application here.
+ var appData = Windows.Storage.ApplicationData.current;
+ var localSettings = appData.localSettings;
+
+ document.getElementById("txtUserName").value = localSettings.values["userName"];
+ document.getElementById("txtFirstName").value = localSettings.values["firstName"];
+ document.getElementById("txtLastName").value = localSettings.values["lastName"];
+
+ } else {
+ // TODO: This application has been reactivated from suspension.
+ // Restore application state here.
+ var contactInfo = WinJS.Application.sessionState["ContactInfo"];
+ if (contactInfo) {
+ document.getElementById("txtUserName").value = contactInfo.userName;
+ document.getElementById("txtFirstName").value = contactInfo.firstName;
+ document.getElementById("txtLastName").value = contactInfo.lastName;
+ }
+
+ }
+ args.setPromise(WinJS.UI.processAll().then(function(){
+ //assign eventListener to save button
+ btnSaveData.addEventListener("click", saveData, false);
+ }));
+ }
+ };
+
+ app.oncheckpoint = function (args) {
+ // TODO: This application is about to be suspended. Save any state
+ // that needs to persist across suspensions here. You might use the
+ // WinJS.Application.sessionState object, which is automatically
+ // saved and restored across suspension. If you need to complete an
+ // asynchronous operation before your application is suspended, call
+ // args.setPromise().
+ var contactInfo = {
+ userName: document.getElementById("txtUserName").value,
+ firstName : document.getElementById("txtFirstName").value,
+ lastName : document.getElementById("txtLastName").value
+ };
+
+ WinJS.Application.sessionState["ContactInfo"] = contactInfo;
+ };
+
+ app.start();
+
+ function saveData() {
+ var userName = document.getElementById("txtUserName").value;
+ var firstName = document.getElementById("txtFirstName").value;
+ var lastName = document.getElementById("txtLastName").value;
+
+ //store the values in ApplicationData
+ var appData = Windows.Storage.ApplicationData.current;
+ var localSettings = appData.localSettings;
+ localSettings.values["userName"] = userName;
+ localSettings.values["firstName"] = firstName;
+ localSettings.values["lastName"] = lastName;
+
+ //update the ui saying that has been saved
+ var lblToShowSaveMessage = document.getElementById("lblDataSaved");
+ lblToShowSaveMessage.innerText = "The data has been successfully saved to the local storage";
+
+ }
+
+
+
+})();
View
48 LifeCycleJS/LifeCycleJS/package.appxmanifest
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest">
+
+ <Identity
+ Name="9ce6b650-18e8-4bb9-9070-1e361d4eeb8a"
+ Version="1.0.0.0"
+ Publisher="CN=Gergo" />
+
+ <Properties>
+ <DisplayName>LifeCycleJS</DisplayName>
+ <PublisherDisplayName>Gergo</PublisherDisplayName>
+ <Logo>images\storelogo.png</Logo>
+ </Properties>
+
+ <Prerequisites>
+ <OSMinVersion>6.2.1</OSMinVersion>
+ <OSMaxVersionTested>6.2.1</OSMaxVersionTested>
+ </Prerequisites>
+
+ <Resources>
+ <Resource Language="x-generate" />
+ </Resources>
+
+ <Applications>
+ <Application
+ Id="App"
+ StartPage="default.html">
+
+ <VisualElements
+ DisplayName="LifeCycleJS"
+ Logo="images\logo.png"
+ SmallLogo="images\smalllogo.png"
+ Description="LifeCycleJS"
+ ForegroundText="light"
+ BackgroundColor="#464646">
+
+ <DefaultTile ShowName="allLogos" />
+ <SplashScreen Image="images\splashscreen.png" />
+
+ </VisualElements>
+ </Application>
+ </Applications>
+
+ <Capabilities>
+ <Capability Name="internetClient" />
+ </Capabilities>
+
+</Package>
Please sign in to comment.
Something went wrong with that request. Please try again.