Skip to content

Commit 9bb9373

Browse files
committed
Added 69th post.
1 parent 3b7c2ac commit 9bb9373

File tree

83 files changed

+11742
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+11742
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio 2012
4+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BindRadioButtonsToEnums", "BindRadioButtonsToEnums\BindRadioButtonsToEnums.csproj", "{CB1B1591-7A98-4497-A001-CA8A0E420408}"
5+
EndProject
6+
Global
7+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
8+
Debug|Any CPU = Debug|Any CPU
9+
Debug|ARM = Debug|ARM
10+
Debug|x64 = Debug|x64
11+
Debug|x86 = Debug|x86
12+
Release|Any CPU = Release|Any CPU
13+
Release|ARM = Release|ARM
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
21+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|ARM.ActiveCfg = Debug|ARM
22+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|ARM.Build.0 = Debug|ARM
23+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|ARM.Deploy.0 = Debug|ARM
24+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x64.ActiveCfg = Debug|x64
25+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x64.Build.0 = Debug|x64
26+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x64.Deploy.0 = Debug|x64
27+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x86.ActiveCfg = Debug|x86
28+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x86.Build.0 = Debug|x86
29+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x86.Deploy.0 = Debug|x86
30+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|Any CPU.ActiveCfg = Release|Any CPU
31+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|Any CPU.Build.0 = Release|Any CPU
32+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|Any CPU.Deploy.0 = Release|Any CPU
33+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|ARM.ActiveCfg = Release|ARM
34+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|ARM.Build.0 = Release|ARM
35+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|ARM.Deploy.0 = Release|ARM
36+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x64.ActiveCfg = Release|x64
37+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x64.Build.0 = Release|x64
38+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x64.Deploy.0 = Release|x64
39+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x86.ActiveCfg = Release|x86
40+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x86.Build.0 = Release|x86
41+
{CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x86.Deploy.0 = Release|x86
42+
EndGlobalSection
43+
GlobalSection(SolutionProperties) = preSolution
44+
HideSolutionNode = FALSE
45+
EndGlobalSection
46+
EndGlobal
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<Application
2+
x:Class="BindRadioButtonsToEnums.App"
3+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:local="using:BindRadioButtonsToEnums">
6+
7+
<Application.Resources>
8+
<ResourceDictionary>
9+
<ResourceDictionary.MergedDictionaries>
10+
11+
<!--
12+
Styles that define common aspects of the platform look and feel
13+
Required by Visual Studio project and item templates
14+
-->
15+
<ResourceDictionary Source="Common/StandardStyles.xaml"/>
16+
<ResourceDictionary Source="Styles/ControlStyles.xaml"/>
17+
</ResourceDictionary.MergedDictionaries>
18+
19+
</ResourceDictionary>
20+
</Application.Resources>
21+
</Application>
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.IO;
4+
using System.Linq;
5+
using Windows.ApplicationModel;
6+
using Windows.ApplicationModel.Activation;
7+
using Windows.Foundation;
8+
using Windows.Foundation.Collections;
9+
using Windows.UI.Xaml;
10+
using Windows.UI.Xaml.Controls;
11+
using Windows.UI.Xaml.Controls.Primitives;
12+
using Windows.UI.Xaml.Data;
13+
using Windows.UI.Xaml.Input;
14+
using Windows.UI.Xaml.Media;
15+
using Windows.UI.Xaml.Navigation;
16+
17+
// The Blank Application template is documented at http://go.microsoft.com/fwlink/?LinkId=234227
18+
19+
namespace BindRadioButtonsToEnums
20+
{
21+
/// <summary>
22+
/// Provides application-specific behavior to supplement the default Application class.
23+
/// </summary>
24+
sealed partial class App : Application
25+
{
26+
/// <summary>
27+
/// Initializes the singleton application object. This is the first line of authored code
28+
/// executed, and as such is the logical equivalent of main() or WinMain().
29+
/// </summary>
30+
public App()
31+
{
32+
this.InitializeComponent();
33+
this.Suspending += OnSuspending;
34+
}
35+
36+
/// <summary>
37+
/// Invoked when the application is launched normally by the end user. Other entry points
38+
/// will be used when the application is launched to open a specific file, to display
39+
/// search results, and so forth.
40+
/// </summary>
41+
/// <param name="args">Details about the launch request and process.</param>
42+
protected override void OnLaunched(LaunchActivatedEventArgs args)
43+
{
44+
Frame rootFrame = Window.Current.Content as Frame;
45+
46+
// Do not repeat app initialization when the Window already has content,
47+
// just ensure that the window is active
48+
if (rootFrame == null)
49+
{
50+
// Create a Frame to act as the navigation context and navigate to the first page
51+
rootFrame = new Frame();
52+
53+
if (args.PreviousExecutionState == ApplicationExecutionState.Terminated)
54+
{
55+
//TODO: Load state from previously suspended application
56+
}
57+
58+
// Place the frame in the current Window
59+
Window.Current.Content = rootFrame;
60+
}
61+
62+
if (rootFrame.Content == null)
63+
{
64+
// When the navigation stack isn't restored navigate to the first page,
65+
// configuring the new page by passing required information as a navigation
66+
// parameter
67+
if (!rootFrame.Navigate(typeof(MainPage), args.Arguments))
68+
{
69+
throw new Exception("Failed to create initial page");
70+
}
71+
}
72+
// Ensure the current window is active
73+
Window.Current.Activate();
74+
}
75+
76+
/// <summary>
77+
/// Invoked when application execution is being suspended. Application state is saved
78+
/// without knowing whether the application will be terminated or resumed with the contents
79+
/// of memory still intact.
80+
/// </summary>
81+
/// <param name="sender">The source of the suspend request.</param>
82+
/// <param name="e">Details about the suspend request.</param>
83+
private void OnSuspending(object sender, SuspendingEventArgs e)
84+
{
85+
var deferral = e.SuspendingOperation.GetDeferral();
86+
//TODO: Save application state and stop any background activity
87+
deferral.Complete();
88+
}
89+
}
90+
}
801 Bytes
Loading
329 Bytes
Loading
2.1 KB
Loading
429 Bytes
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7+
<ProjectGuid>{CB1B1591-7A98-4497-A001-CA8A0E420408}</ProjectGuid>
8+
<OutputType>AppContainerExe</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>BindRadioButtonsToEnums</RootNamespace>
11+
<AssemblyName>BindRadioButtonsToEnums</AssemblyName>
12+
<DefaultLanguage>en-US</DefaultLanguage>
13+
<FileAlignment>512</FileAlignment>
14+
<ProjectTypeGuids>{BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
15+
<PackageCertificateKeyFile>BindRadioButtonsToEnums_TemporaryKey.pfx</PackageCertificateKeyFile>
16+
</PropertyGroup>
17+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
18+
<PlatformTarget>AnyCPU</PlatformTarget>
19+
<DebugSymbols>true</DebugSymbols>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<OutputPath>bin\Debug\</OutputPath>
23+
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
24+
<ErrorReport>prompt</ErrorReport>
25+
<WarningLevel>4</WarningLevel>
26+
</PropertyGroup>
27+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
28+
<PlatformTarget>AnyCPU</PlatformTarget>
29+
<DebugType>pdbonly</DebugType>
30+
<Optimize>true</Optimize>
31+
<OutputPath>bin\Release\</OutputPath>
32+
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
33+
<ErrorReport>prompt</ErrorReport>
34+
<WarningLevel>4</WarningLevel>
35+
</PropertyGroup>
36+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
37+
<DebugSymbols>true</DebugSymbols>
38+
<OutputPath>bin\ARM\Debug\</OutputPath>
39+
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
40+
<NoWarn>;2008</NoWarn>
41+
<DebugType>full</DebugType>
42+
<PlatformTarget>ARM</PlatformTarget>
43+
<UseVSHostingProcess>false</UseVSHostingProcess>
44+
<ErrorReport>prompt</ErrorReport>
45+
<Prefer32Bit>true</Prefer32Bit>
46+
</PropertyGroup>
47+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
48+
<OutputPath>bin\ARM\Release\</OutputPath>
49+
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
50+
<Optimize>true</Optimize>
51+
<NoWarn>;2008</NoWarn>
52+
<DebugType>pdbonly</DebugType>
53+
<PlatformTarget>ARM</PlatformTarget>
54+
<UseVSHostingProcess>false</UseVSHostingProcess>
55+
<ErrorReport>prompt</ErrorReport>
56+
<Prefer32Bit>true</Prefer32Bit>
57+
</PropertyGroup>
58+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
59+
<DebugSymbols>true</DebugSymbols>
60+
<OutputPath>bin\x64\Debug\</OutputPath>
61+
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
62+
<NoWarn>;2008</NoWarn>
63+
<DebugType>full</DebugType>
64+
<PlatformTarget>x64</PlatformTarget>
65+
<UseVSHostingProcess>false</UseVSHostingProcess>
66+
<ErrorReport>prompt</ErrorReport>
67+
<Prefer32Bit>true</Prefer32Bit>
68+
</PropertyGroup>
69+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
70+
<OutputPath>bin\x64\Release\</OutputPath>
71+
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
72+
<Optimize>true</Optimize>
73+
<NoWarn>;2008</NoWarn>
74+
<DebugType>pdbonly</DebugType>
75+
<PlatformTarget>x64</PlatformTarget>
76+
<UseVSHostingProcess>false</UseVSHostingProcess>
77+
<ErrorReport>prompt</ErrorReport>
78+
<Prefer32Bit>true</Prefer32Bit>
79+
</PropertyGroup>
80+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
81+
<DebugSymbols>true</DebugSymbols>
82+
<OutputPath>bin\x86\Debug\</OutputPath>
83+
<DefineConstants>DEBUG;TRACE;NETFX_CORE</DefineConstants>
84+
<NoWarn>;2008</NoWarn>
85+
<DebugType>full</DebugType>
86+
<PlatformTarget>x86</PlatformTarget>
87+
<UseVSHostingProcess>false</UseVSHostingProcess>
88+
<ErrorReport>prompt</ErrorReport>
89+
<Prefer32Bit>true</Prefer32Bit>
90+
</PropertyGroup>
91+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
92+
<OutputPath>bin\x86\Release\</OutputPath>
93+
<DefineConstants>TRACE;NETFX_CORE</DefineConstants>
94+
<Optimize>true</Optimize>
95+
<NoWarn>;2008</NoWarn>
96+
<DebugType>pdbonly</DebugType>
97+
<PlatformTarget>x86</PlatformTarget>
98+
<UseVSHostingProcess>false</UseVSHostingProcess>
99+
<ErrorReport>prompt</ErrorReport>
100+
<Prefer32Bit>true</Prefer32Bit>
101+
</PropertyGroup>
102+
<ItemGroup>
103+
<!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
104+
<Folder Include="Converters\" />
105+
</ItemGroup>
106+
<ItemGroup>
107+
<Compile Include="App.xaml.cs">
108+
<DependentUpon>App.xaml</DependentUpon>
109+
</Compile>
110+
<Compile Include="Common\BindableBase.cs" />
111+
<Compile Include="Helpers\DelegateCommand.cs" />
112+
<Compile Include="ViewModels\JourneyViewModel1.cs" />
113+
<Compile Include="MainPage.xaml.cs">
114+
<DependentUpon>MainPage.xaml</DependentUpon>
115+
</Compile>
116+
<Compile Include="Properties\AssemblyInfo.cs" />
117+
<Compile Include="Models\TransportationMode.cs" />
118+
</ItemGroup>
119+
<ItemGroup>
120+
<AppxManifest Include="Package.appxmanifest">
121+
<SubType>Designer</SubType>
122+
</AppxManifest>
123+
<None Include="BindRadioButtonsToEnums_TemporaryKey.pfx" />
124+
</ItemGroup>
125+
<ItemGroup>
126+
<Content Include="Assets\Logo.png" />
127+
<Content Include="Assets\SmallLogo.png" />
128+
<Content Include="Assets\SplashScreen.png" />
129+
<Content Include="Assets\StoreLogo.png" />
130+
</ItemGroup>
131+
<ItemGroup>
132+
<ApplicationDefinition Include="App.xaml">
133+
<Generator>MSBuild:Compile</Generator>
134+
<SubType>Designer</SubType>
135+
</ApplicationDefinition>
136+
<Page Include="Common\StandardStyles.xaml">
137+
<Generator>MSBuild:Compile</Generator>
138+
<SubType>Designer</SubType>
139+
</Page>
140+
<Page Include="Styles\ControlStyles.xaml">
141+
<SubType>Designer</SubType>
142+
<Generator>MSBuild:Compile</Generator>
143+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
144+
</Page>
145+
<Page Include="MainPage.xaml">
146+
<Generator>MSBuild:Compile</Generator>
147+
<SubType>Designer</SubType>
148+
</Page>
149+
</ItemGroup>
150+
<PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '11.0' ">
151+
<VisualStudioVersion>11.0</VisualStudioVersion>
152+
</PropertyGroup>
153+
<Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
154+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
155+
Other similar extension points exist, see Microsoft.Common.targets.
156+
<Target Name="BeforeBuild">
157+
</Target>
158+
<Target Name="AfterBuild">
159+
</Target>
160+
-->
161+
</Project>

0 commit comments

Comments
 (0)