From 7e684eb86dd60953e22527bec673fbd6c98e363d Mon Sep 17 00:00:00 2001 From: Beatriz Stollnitz Date: Mon, 5 Aug 2019 20:54:24 -0700 Subject: [PATCH] Added 71st post. --- .../BindRadioButtonsToEnums.sln | 46 + .../BindRadioButtonsToEnums.v11.suo | Bin 0 -> 64000 bytes .../BindRadioButtonsToEnums/App.xaml | 21 + .../BindRadioButtonsToEnums/App.xaml.cs | 90 + .../BindRadioButtonsToEnums/Assets/Logo.png | Bin 0 -> 801 bytes .../Assets/SmallLogo.png | Bin 0 -> 329 bytes .../Assets/SplashScreen.png | Bin 0 -> 2146 bytes .../Assets/StoreLogo.png | Bin 0 -> 429 bytes .../BindRadioButtonsToEnums.csproj | 164 ++ .../BindRadioButtonsToEnums_TemporaryKey.pfx | Bin 0 -> 2512 bytes .../Common/BindableBase.cs | 55 + .../Common/StandardStyles.xaml | 1829 ++++++++++++++++ .../Converters/EnumToBooleanConverter.cs | 44 + .../TransportationModeToBooleanConverter.cs | 11 + .../Helpers/DelegateCommand.cs | 29 + .../BindRadioButtonsToEnums/MainPage.xaml | 168 ++ .../BindRadioButtonsToEnums/MainPage.xaml.cs | 39 + .../Models/TransportationMode.cs | 18 + .../Package.appxmanifest | 42 + .../Properties/AssemblyInfo.cs | 29 + .../Styles/ControlStyles.xaml | 264 +++ .../ViewModels/JourneyViewModel1.cs | 66 + .../ViewModels/JourneyViewModel2.cs | 86 + .../ViewModels/JourneyViewModel3.cs | 39 + .../bin/Debug/App.xaml | 22 + .../bin/Debug/AppX/App.xaml | 22 + .../bin/Debug/AppX/AppxManifest.xml | 42 + .../bin/Debug/AppX/Assets/Logo.png | Bin 0 -> 801 bytes .../bin/Debug/AppX/Assets/SmallLogo.png | Bin 0 -> 329 bytes .../bin/Debug/AppX/Assets/SplashScreen.png | Bin 0 -> 2146 bytes .../bin/Debug/AppX/Assets/StoreLogo.png | Bin 0 -> 429 bytes .../Debug/AppX/BindRadioButtonsToEnums.exe | Bin 0 -> 33280 bytes .../Debug/AppX/BindRadioButtonsToEnums.pdb | Bin 0 -> 138752 bytes .../bin/Debug/AppX/Common/StandardStyles.xaml | 1830 +++++++++++++++++ .../bin/Debug/AppX/MainPage.xaml | 169 ++ .../bin/Debug/AppX/Styles/ControlStyles.xaml | 265 +++ .../bin/Debug/AppX/resources.pri | Bin 0 -> 2232 bytes .../bin/Debug/AppX/vs.appxrecipe | 74 + .../bin/Debug/AppxManifest.xml | 42 + .../bin/Debug/BasicPage1.xaml | 71 + .../BindRadioButtonsToEnums.build.appxrecipe | 56 + .../bin/Debug/BindRadioButtonsToEnums.exe | Bin 0 -> 33280 bytes .../bin/Debug/BindRadioButtonsToEnums.pdb | Bin 0 -> 138752 bytes .../bin/Debug/Common/StandardStyles.xaml | 1830 +++++++++++++++++ .../bin/Debug/ControlStyles.xaml | 277 +++ .../bin/Debug/MainPage.xaml | 169 ++ .../bin/Debug/Styles/ControlStyles.xaml | 265 +++ .../bin/Debug/resources.pri | Bin 0 -> 2232 bytes .../obj/Debug/App.g.cs | 27 + .../obj/Debug/App.g.i.cs | 56 + .../obj/Debug/App.xaml | 22 + ...ButtonsToEnums.csproj.FileListAbsolute.txt | 90 + .../obj/Debug/BindRadioButtonsToEnums.exe | Bin 0 -> 33280 bytes .../obj/Debug/BindRadioButtonsToEnums.pdb | Bin 0 -> 138752 bytes .../obj/Debug/BlankPage1.g.cs | 0 .../obj/Debug/BlankPage1.g.i.cs | 35 + .../obj/Debug/Common/StandardStyles.g.cs | 1 + .../obj/Debug/Common/StandardStyles.g.i.cs | 1 + .../obj/Debug/Common/StandardStyles.xaml | 1830 +++++++++++++++++ ...gnTimeResolveAssemblyReferencesInput.cache | Bin 0 -> 13852 bytes .../obj/Debug/LanguageQualifiers.txt | 0 .../Debug/LanguageQualifiers.txt.intermediate | 0 .../obj/Debug/MainPage.g.cs | 27 + .../obj/Debug/MainPage.g.i.cs | 38 + .../obj/Debug/MainPage.xaml | 169 ++ .../obj/Debug/ProjectArchitectures.txt | 1 + .../obj/Debug/Styles/ControlStyles.g.cs | 1 + .../obj/Debug/Styles/ControlStyles.g.i.cs | 1 + .../obj/Debug/Styles/ControlStyles.xaml | 265 +++ ...le_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs | 0 ...le_5937a670-0e60-4077-877b-f7221da3dda1.cs | 0 ...le_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs | 0 .../obj/Debug/XamlTypeInfo.g.cs | 812 ++++++++ .../obj/Debug/XamlTypeInfo.g.cs.backup | 867 ++++++++ .../BindRadioButtonsToEnums.exe | Bin 0 -> 14336 bytes .../BindRadioButtonsToEnums.pdb | Bin 0 -> 77312 bytes .../obj/Debug/layout.resfiles | 8 + .../obj/Debug/layout.resfiles.intermediate | 8 + .../obj/Debug/pri.resfiles | 0 .../obj/Debug/pri.resfiles.intermediate | 0 .../obj/Debug/priconfig.xml | 24 + .../obj/Debug/priconfig.xml.intermediate | 24 + .../obj/Debug/resources.resfiles | 0 .../obj/Debug/resources.resfiles.intermediate | 0 .../Images/BindRadioButtonsToEnums3.png | Bin 0 -> 24297 bytes 71-BindRadioButtonsToEnumsPart3/README.md | 84 + 86 files changed, 12565 insertions(+) create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.sln create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.v11.suo create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/Logo.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/SmallLogo.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/SplashScreen.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/StoreLogo.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/BindRadioButtonsToEnums.csproj create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/BindRadioButtonsToEnums_TemporaryKey.pfx create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/BindableBase.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/StandardStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/EnumToBooleanConverter.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/TransportationModeToBooleanConverter.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Helpers/DelegateCommand.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/MainPage.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/MainPage.xaml.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Models/TransportationMode.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Package.appxmanifest create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Properties/AssemblyInfo.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Styles/ControlStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/ViewModels/JourneyViewModel1.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/ViewModels/JourneyViewModel2.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/ViewModels/JourneyViewModel3.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/App.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/App.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/AppxManifest.xml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/Assets/Logo.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/Assets/SmallLogo.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/Assets/SplashScreen.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/Assets/StoreLogo.png create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/BindRadioButtonsToEnums.exe create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/BindRadioButtonsToEnums.pdb create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/Common/StandardStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/MainPage.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/Styles/ControlStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/resources.pri create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppX/vs.appxrecipe create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/AppxManifest.xml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/BasicPage1.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/BindRadioButtonsToEnums.build.appxrecipe create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/BindRadioButtonsToEnums.exe create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/BindRadioButtonsToEnums.pdb create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/Common/StandardStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/ControlStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/MainPage.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/Styles/ControlStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/bin/Debug/resources.pri create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/App.g.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/App.g.i.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/App.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/BindRadioButtonsToEnums.csproj.FileListAbsolute.txt create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/BindRadioButtonsToEnums.exe create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/BindRadioButtonsToEnums.pdb create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/BlankPage1.g.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/BlankPage1.g.i.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/Common/StandardStyles.g.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/Common/StandardStyles.g.i.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/Common/StandardStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/LanguageQualifiers.txt create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/LanguageQualifiers.txt.intermediate create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/MainPage.g.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/MainPage.g.i.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/MainPage.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/ProjectArchitectures.txt create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/Styles/ControlStyles.g.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/Styles/ControlStyles.g.i.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/Styles/ControlStyles.xaml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/XamlTypeInfo.g.cs create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/XamlTypeInfo.g.cs.backup create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/intermediatexaml/BindRadioButtonsToEnums.exe create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/intermediatexaml/BindRadioButtonsToEnums.pdb create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/layout.resfiles create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/layout.resfiles.intermediate create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/pri.resfiles create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/pri.resfiles.intermediate create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/priconfig.xml create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/priconfig.xml.intermediate create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/resources.resfiles create mode 100644 71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/obj/Debug/resources.resfiles.intermediate create mode 100644 71-BindRadioButtonsToEnumsPart3/Images/BindRadioButtonsToEnums3.png create mode 100644 71-BindRadioButtonsToEnumsPart3/README.md diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.sln b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.sln new file mode 100644 index 0000000..7060cd6 --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.sln @@ -0,0 +1,46 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2012 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BindRadioButtonsToEnums", "BindRadioButtonsToEnums\BindRadioButtonsToEnums.csproj", "{CB1B1591-7A98-4497-A001-CA8A0E420408}" +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 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|ARM.ActiveCfg = Debug|ARM + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|ARM.Build.0 = Debug|ARM + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|ARM.Deploy.0 = Debug|ARM + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x64.ActiveCfg = Debug|x64 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x64.Build.0 = Debug|x64 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x64.Deploy.0 = Debug|x64 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x86.ActiveCfg = Debug|x86 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x86.Build.0 = Debug|x86 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Debug|x86.Deploy.0 = Debug|x86 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|Any CPU.Build.0 = Release|Any CPU + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|Any CPU.Deploy.0 = Release|Any CPU + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|ARM.ActiveCfg = Release|ARM + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|ARM.Build.0 = Release|ARM + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|ARM.Deploy.0 = Release|ARM + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x64.ActiveCfg = Release|x64 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x64.Build.0 = Release|x64 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x64.Deploy.0 = Release|x64 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x86.ActiveCfg = Release|x86 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x86.Build.0 = Release|x86 + {CB1B1591-7A98-4497-A001-CA8A0E420408}.Release|x86.Deploy.0 = Release|x86 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.v11.suo b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums.v11.suo new file mode 100644 index 0000000000000000000000000000000000000000..7674a6011db09381aaa8bc38ee792428f7ed5db7 GIT binary patch literal 64000 zcmeHQ3wT^db-pXxvSjC>JPAoigfYf|wO&c9haKDTzGN$rEX9&+hpZ8+-79&meJHyt zTS}agP@ZW>o1`UaDQ!pyp%6l$X(_Z6NT5J~#?aCR!aIcqNDF+0lzc65|NqV%?Y*mg z++F#hku%cS`m^pEq?VZZi9V|FrZBX>x33Z{)7o_ z2-gvSZj`0nj92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nyU9{Zm}GvF@iXQiEkK$)&R3oJT6wjd2Yb^Us*GO}X5md{~S8*C5Je0H^skBkt#fOdIRf#G;B6=6@zI(<_c& zPQ8~U6Ej@-y)p5HYe5ktVT8@l70g!#dB5E81w@w5gGiTqz$B3;Q?^oi5YMtG59g7I z)p_!*{Lusasg#Hg%aDIk`fM*Aao!k1k1_9!^MOO~;c>2TJLbH#;=Y_4*RG9XRbUTh zg$6(&e!0{dI%~k6buU~inl=F3>FFh>5hg4(Po8MAW>(~!_5TXouZI5LNBpmwX;sR< z!;Dwzfc)q3c1r($M`BMp%)hl%#^(K6@_z>Je$jlt9RH1=t|^Q1+xEqZ;s*WMGE_r< zEB_CHv+1*zJTBy{*mr)5<*sQPYM}o%B-Lcfzu2d}AAFYqf7@kz59Wqf3TuErTfu7Z z--7si%!C8Lo^#Q&bE_o_OHsZAlOm@vz@!M9{AH*qiO0i|A!H`$<%*VeajWZ zYz0J1=tc`bjl{LAG3Y-oL8O+pQv~|YMN{hXD)Rp@;+olOV*dfIS&nLxX5M1`MQNRn z*XM$)e;Q#<@qZ9;L$rVp?sJ{^k(=sPmCj#te$RuS|JmU!PrvaOcl~POzT_unSZ?BK z4ZK%N=(>N~8@IiCJI<8Ps^uxdy< Om!9tJAE|RXhyMo#|5#f9 literal 0 HcmV?d00001 diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml new file mode 100644 index 0000000..aca11c7 --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml.cs b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/App.xaml.cs new file mode 100644 index 0000000..4bcdcd8 --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/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 BindRadioButtonsToEnums +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + sealed partial class App : Application + { + /// + /// 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(). + /// + public App() + { + this.InitializeComponent(); + this.Suspending += OnSuspending; + } + + /// + /// 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. + /// + /// Details about the launch request and process. + 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(); + } + + /// + /// 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. + /// + /// The source of the suspend request. + /// Details about the suspend request. + private void OnSuspending(object sender, SuspendingEventArgs e) + { + var deferral = e.SuspendingOperation.GetDeferral(); + //TODO: Save application state and stop any background activity + deferral.Complete(); + } + } +} diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/Logo.png b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/Logo.png new file mode 100644 index 0000000000000000000000000000000000000000..e26771cb33a49bbef824aa333737181b0a5b09a3 GIT binary patch literal 801 zcmeAS@N?(olHy`uVBq!ia0vp^(?FPm4M^HB7Cr(}k|nMYCBgY=CFO}lsSJ)O`AMk? zp1FzXsX?iUDV2pMQ*9U+m=1foIEGZ*dUJQLud<^=L*gE#63Ho!PGzwUb%GPK6&5iF zt!p@aGNX}6(PVh|N)M-?0RNcTbjaWgEU8noxUax-n>&3Ay)#!y&O11y2sKEF zt72@XC1)RvT6Xw=y_`Ce)`nGULLL^lI$kwi^E+dQT7YeXY4GvlRR%kj1x$VZi%Bdd zz}2Giy=-_$h+v#(S+};)DuE4EM?_^qB_eDeo@&q%StD1F>L|*0ZC2sb-}llSMTM?O z6{b3iid~yk@VE7q7Wb+P8?H5IYp?pSVcLE~18m#ygK20HL@6W5woI~Fjlw$fX1U{xQA5a+t0 zH$WNIb=fNpWHo}M9#;K6eszDZKty_|-?j4iocj5#zotrWc;@;w`H@=mjsvS2wXX0_ zY}l$4@^sE?UcC)ji*L=Z&}P!xaL&2((OQlj2dv~pV-ifAS;ZsH1{`D!GY%yys5WH)f>ZLo5m%6XjuXdbKMR7MEHSyb{m!_{Afji&MT$_sz7 z>1{~MlIFe28FRN(GC_~;#Jp4ADipP+9hh|P#-&`vO-Upt3jE0@YLh(^55uYWl9g)Z RA3>Rb!PC{xWt~$(69A&hN*MqE literal 0 HcmV?d00001 diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/SmallLogo.png b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/SmallLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..1eb0d9d528c42f132872e8af4dc563081b0b9aff GIT binary patch literal 329 zcmV-P0k-~$P)q$gGRCwC#*X;?zAP@%N+|i#I!$mrh zlQ>KU$Rdu>|JH&931_?y6Djl{gb>4nCV5pzDJ?S!mq|4ZejKj%i@j$H{#ML~2Y{DF z$=}bKPaz+UGt{v(4CTQQXym}&iW8{s!ew~XIE7NLjQpy#I2S$rous$~?f%DHT#B*+ zq=#!zc5=0FEqWFpB%UE(L807on!pidHPLgYO}XEgorrg;PB=8ipgQ5u5`&g_MQaRd zaU7Ao8XQMuuN21-s0PPTs1%38x_Yl3Fs-|Y4!C-;M-8g@n*v@1|s#GQ665=9@Rxy?u0YW0&WN+~=RXpPbVXXL4m7Aq=E6I0%{06TwRn=U9d8>exk> zD-Z%M3DNQ`bTLSEF=%NFyoHcAkD*CiXqljo*0E?o$GiDC4q}}|%*0WghLlK#npw?hecrM}Mw?`E(z5C8< z8&*b^!{>5?4aT89vdrgBgSc-x6JZD3F^l#*G(@OO*^1D%Eu7?HAy<3kTLqW9N{^#6vso zVQwY48q7)m{~xQ64RV7{E7Y=&T~?^05Ky`5oNQ8bLgFCPq9co^R09BVRS1OAmH;hU zC#q(N!gNqm!zU#%sv{r5mm-Uv8b-~a1F-;p^>)pnXfKge4s9?;;MFIr*fixPG}NBA z6_G5BEmeO6XXh(emkciB{7tA;iwC2^s^VzyU_h0@ae84ACMY`cIDEju=<`q|2QAEv zW_)W|i|9aknqdmS=#w73eW_csQ$8IhT^vY1^1;X3&J0{%*tcQq!gJpr3w?TJc~@5= zKV5sM{$3k>b#S$@CTkhIF*{v*u(F&$&Yq1naHxt8Mz2N%7aQ3(^VNRZahk1||7?Bl z*idzO_u)FhRj4cPzDO>YA>>lxAGaciEiX8Xzp1SVPv91};$OG3cC&8!v3{Jq^kH@8 UTIccK;hzT5*3#}uZuEx!0OwrBv;Y7A literal 0 HcmV?d00001 diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/StoreLogo.png b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Assets/StoreLogo.png new file mode 100644 index 0000000000000000000000000000000000000000..dcb672712c6823a0c91548ded70a8acb85536b4d GIT binary patch literal 429 zcmV;e0aE^nP)NtYJa1l)bQ5qwGXpZbs7%2oRMd4y35$s&66(fxhNg8W02!vSn zdlrL2h^Fx+3=$z;kK{0D#MyeJ8WRWZcLSf(PcQ_mLOhrmC}O-tX^0c>5`YvCUZVsc zG-6#78ubjJ5nA;OX&^K(q=i6ZNE3m?kTwE^AqxZoLskfB3|S&1F=UO9!cY$g2@Lgu z;9{sJ1P9|X2L`r1#Gs8R{E^$PRrMaC86q| + + + + Debug + AnyCPU + {CB1B1591-7A98-4497-A001-CA8A0E420408} + AppContainerExe + Properties + BindRadioButtonsToEnums + BindRadioButtonsToEnums + en-US + 512 + {BC8A1FFA-BEE3-4634-8014-F334798102B3};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + BindRadioButtonsToEnums_TemporaryKey.pfx + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE;NETFX_CORE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE;NETFX_CORE + prompt + 4 + + + true + bin\ARM\Debug\ + DEBUG;TRACE;NETFX_CORE + ;2008 + full + ARM + false + prompt + true + + + bin\ARM\Release\ + TRACE;NETFX_CORE + true + ;2008 + pdbonly + ARM + false + prompt + true + + + true + bin\x64\Debug\ + DEBUG;TRACE;NETFX_CORE + ;2008 + full + x64 + false + prompt + true + + + bin\x64\Release\ + TRACE;NETFX_CORE + true + ;2008 + pdbonly + x64 + false + prompt + true + + + true + bin\x86\Debug\ + DEBUG;TRACE;NETFX_CORE + ;2008 + full + x86 + false + prompt + true + + + bin\x86\Release\ + TRACE;NETFX_CORE + true + ;2008 + pdbonly + x86 + false + prompt + true + + + + + + + App.xaml + + + + + + + + + MainPage.xaml + + + + + + + + Designer + + + + + + + + + + + + MSBuild:Compile + Designer + + + MSBuild:Compile + Designer + + + Designer + MSBuild:Compile + PreserveNewest + + + MSBuild:Compile + Designer + + + + 11.0 + + + + \ No newline at end of file diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/BindRadioButtonsToEnums_TemporaryKey.pfx b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/BindRadioButtonsToEnums_TemporaryKey.pfx new file mode 100644 index 0000000000000000000000000000000000000000..3862dbf8ef5846b433b538d8f94f525d61bb9e41 GIT binary patch literal 2512 zcmY*Zc|6qH8~)D9SjJ?jjBRL`BAF@1o-CDRj447>_Uwx6lNyYyS+ZQlnw=Y6LQ}G& zO}LgU*$O2zl#+xjx!>;R_q+FVKkw%~=Y5{{dCocioR`Q#bweRAA`2CVL@CA?$E*oL zcp!x=6a&se1%dQsA`7wcpBCaHoQ3!R((l2XLh}F5CBO%P7P8%-%JUM=f{(&3I+jd1Hy2Hx-;urn`;d0hBwlxw)2N_u*8j8k9$rR@ zZNz37n$+#9`21^&_BJ-)Z5JDE~3?$9XVRg|7ioW!*F=C@axu;tS6;&H0bMAn}x2l}eXe&t1B0#lLdKXVK< zF=;Q7oC@i1`^3ePD??uR?^R!tJGBYN$6VidiT#$WxWn%2{{p+91-z@#!AvcGbt7Aj z+)V6UILg~cuNKtNj~bMckgC|k^$%KKBg4xU>pir8R3{Xg-XyiC-_z_Y3ChsZyV`!U zFH_bfCeksb?2%uJr;Ezj$oF<##6M!*wkH2r_jB5n_SjBpkL8&?Hx#V)#sdtz!4Bso zGTcY}Gqqdzva3Q}7IW@ttiR3VARd)=BJ|=d3LTf*tA4si&CVdgmmrjG8`pG%k}*FJ z;2pj>EsO0;e0OExXg|7Q{r9!evoW|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HS+&9&=Fy(D%{u{=)rKcQc zU&AFORZOK`{rEmi%d%S0_6&H!`1eMBLeB!FAjf{D$=UwW?ba zkD|9Nse%;Wz4sED`VF#my}8uaGdy13k#yu~&sjA!K5o6&T)u7YOD$gLjRfrcZQdFVv=0d?LmG;aWRyr|7KE@_qn{6 zRUDlQnTxV=9Yyxk^TyF_mE!jhgky=r*8{cIw~i&=pNKGF+L+_9Nrv9ncxm%b7F>Du zEiK)l*Cmh7+46Gy`m(;BP?fu&b$f&$;CLyq-a~Opt78oDK{Cjr+fBxM%UPFkbRmyDxYIu9r>~@F((4w{`zQt0aYbdH2?qr literal 0 HcmV?d00001 diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/BindableBase.cs b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/BindableBase.cs new file mode 100644 index 0000000..735ba67 --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/BindableBase.cs @@ -0,0 +1,55 @@ +using System; +using System.ComponentModel; +using System.Runtime.CompilerServices; +using Windows.UI.Xaml.Data; + +namespace BindRadioButtonsToEnums.Common +{ + /// + /// Implementation of to simplify models. + /// + [Windows.Foundation.Metadata.WebHostHidden] + public abstract class BindableBase : INotifyPropertyChanged + { + /// + /// Multicast event for property change notifications. + /// + public event PropertyChangedEventHandler PropertyChanged; + + /// + /// Checks if a property already matches a desired value. Sets the property and + /// notifies listeners only when necessary. + /// + /// Type of the property. + /// Reference to a property with both getter and setter. + /// Desired value for the property. + /// Name of the property used to notify listeners. This + /// value is optional and can be provided automatically when invoked from compilers that + /// support CallerMemberName. + /// True if the value was changed, false if the existing value matched the + /// desired value. + protected bool SetProperty(ref T storage, T value, [CallerMemberName] String propertyName = null) + { + if (object.Equals(storage, value)) return false; + + storage = value; + this.OnPropertyChanged(propertyName); + return true; + } + + /// + /// Notifies listeners that a property value has changed. + /// + /// Name of the property used to notify listeners. This + /// value is optional and can be provided automatically when invoked from compilers + /// that support . + protected void OnPropertyChanged([CallerMemberName] string propertyName = null) + { + var eventHandler = this.PropertyChanged; + if (eventHandler != null) + { + eventHandler(this, new PropertyChangedEventArgs(propertyName)); + } + } + } +} diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/StandardStyles.xaml b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/StandardStyles.xaml new file mode 100644 index 0000000..85f4ed6 --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Common/StandardStyles.xaml @@ -0,0 +1,1829 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Mouse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/EnumToBooleanConverter.cs b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/EnumToBooleanConverter.cs new file mode 100644 index 0000000..9e99e7c --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/EnumToBooleanConverter.cs @@ -0,0 +1,44 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Windows.UI.Xaml; +using Windows.UI.Xaml.Data; + +namespace BindRadioButtonsToEnums.Converters +{ + public class EnumToBooleanConverter : IValueConverter where TEnum : struct + { + public object Convert(object value, Type targetType, object parameter, string language) + { + // Convert parameter from string to enum if needed. + TEnum enumValue; + if (parameter is string && Enum.TryParse((string)parameter, true, out enumValue)) + { + parameter = enumValue; + } + + // Return true if value matches parameter. + return Object.Equals(value, parameter); + } + + public object ConvertBack(object value, Type targetType, object parameter, string language) + { + // If value is true, then return the enum value corresponding to parameter. + if (Object.Equals(value, true)) + { + // Convert parameter from string to enum if needed. + TEnum enumValue; + if (parameter is string && Enum.TryParse((string)parameter, true, out enumValue)) + { + parameter = enumValue; + } + return parameter; + } + + // Otherwise, return UnsetValue, which is ignored by bindings. + return DependencyProperty.UnsetValue; + } + } +} diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/TransportationModeToBooleanConverter.cs b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/TransportationModeToBooleanConverter.cs new file mode 100644 index 0000000..d5af72b --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Converters/TransportationModeToBooleanConverter.cs @@ -0,0 +1,11 @@ +using BindRadioButtonsToEnums.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BindRadioButtonsToEnums.Converters +{ + public class TransportationModeToBooleanConverter : EnumToBooleanConverter { } +} diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Helpers/DelegateCommand.cs b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Helpers/DelegateCommand.cs new file mode 100644 index 0000000..3dc994d --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/Helpers/DelegateCommand.cs @@ -0,0 +1,29 @@ +using System; +using System.Windows.Input; + +namespace BindRadioButtonsToEnums.Helpers +{ + public sealed class DelegateCommand : ICommand + { + private Action action; + + public DelegateCommand(Action action) + { + this.action = action; + } + + public bool CanExecute(object parameter) + { + return true; + } + +#pragma warning disable 67 + public event EventHandler CanExecuteChanged; +#pragma warning restore 67 + + public void Execute(object parameter) + { + this.action(); + } + } +} diff --git a/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/MainPage.xaml b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/MainPage.xaml new file mode 100644 index 0000000..f5da700 --- /dev/null +++ b/71-BindRadioButtonsToEnumsPart3/BindRadioButtonsToEnums3/BindRadioButtonsToEnums/MainPage.xaml @@ -0,0 +1,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Selected value: + + + Estimated duration: + + +