Click here to Skip to main content
15,894,106 members
Articles / Mobile Apps / Windows Phone 7

Weekly Thai Recipe! for Windows Phone

Rate me:
Please Sign up or sign in to vote.
4.92/5 (37 votes)
6 Jul 2012CPOL12 min read 79.7K   1.8K   82  
A complete WP7 application with a central management website (ASP.NET MVC4) for recipe management and push notifications
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProductVersion>10.0.20506</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{E9ECD691-08E6-4F4E-8E41-B7C9AC872AC7}</ProjectGuid>
    <ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>WeeklyThaiRecipe</RootNamespace>
    <AssemblyName>WeeklyThaiRecipe</AssemblyName>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    <TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
    <SilverlightApplication>true</SilverlightApplication>
    <SupportedCultures>
    </SupportedCultures>
    <XapOutputs>true</XapOutputs>
    <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
    <XapFilename>WeeklyThaiRecipe.xap</XapFilename>
    <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
    <SilverlightAppEntry>WeeklyThaiRecipe.App</SilverlightAppEntry>
    <ValidateXaml>true</ValidateXaml>
    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>Bin\Debug</OutputPath>
    <DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>Bin\Release</OutputPath>
    <DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="GalaSoft.MvvmLight.Extras.WP71, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
    <Reference Include="GalaSoft.MvvmLight.WP71, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.Advertising.Mobile, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <Reference Include="Microsoft.Advertising.Mobile.UI, Version=5.2.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    <Reference Include="Microsoft.Phone" />
    <Reference Include="Microsoft.Phone.Controls" />
    <Reference Include="Microsoft.Phone.Controls.Toolkit, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b772ad94eb9ca604, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.Phone.Interop" />
    <Reference Include="Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
    <Reference Include="Microsoft.Xna.Framework" />
    <Reference Include="mtiks">
      <HintPath>..\..\Library\Mtiks\mtiks.dll</HintPath>
    </Reference>
    <Reference Include="RestSharp.WindowsPhone">
      <HintPath>..\packages\RestSharp.103.0.0\lib\sl4-wp71\RestSharp.WindowsPhone.dll</HintPath>
    </Reference>
    <Reference Include="System.Windows" />
    <Reference Include="system" />
    <Reference Include="System.Core" />
    <Reference Include="System.Net" />
    <Reference Include="System.Xml" />
    <Reference Include="mscorlib.extensions" />
    <Reference Include="System.Xml.Linq" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="App.xaml.cs">
      <DependentUpon>App.xaml</DependentUpon>
    </Compile>
    <Compile Include="DesignTime\DesignPushRegistrationService.cs" />
    <Compile Include="DesignTime\DesignRecipeService.cs" />
    <Compile Include="DesignTime\DesignSettingHelper.cs" />
    <Compile Include="DesignTime\DesignTileResetService.cs" />
    <Compile Include="Localization\LocalizedStrings.cs" />
    <Compile Include="Models\Recipe.cs" />
    <Compile Include="Models\Spicy.cs" />
    <Compile Include="Panorama\DynamicBackgroundPanorama.cs" />
    <Compile Include="Panorama\TransitioningBackgroundControl.cs" />
    <Compile Include="Panorama\UpdatingPanningLayer.cs" />
    <Compile Include="Repository\DeviceIdRepository.cs" />
    <Compile Include="Repository\IDeviceIdRepository.cs" />
    <Compile Include="Services\IPhoneRegistrationService.cs" />
    <Compile Include="Services\IPushRegistrationService.cs" />
    <Compile Include="Services\IRecipeService.cs" />
    <Compile Include="Services\ITileResetService.cs" />
    <Compile Include="Services\PhoneRegistrationService.cs" />
    <Compile Include="Services\PushRegistrationService.cs" />
    <Compile Include="Services\RecipeService.cs" />
    <Compile Include="Resources\AppResources.Designer.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DependentUpon>AppResources.resx</DependentUpon>
    </Compile>
    <Compile Include="Converters\BooleanToVisibilityConverter.cs" />
    <Compile Include="Converters\BoolToSwitchConverter.cs" />
    <Compile Include="Converters\VisibilityConverter.cs" />
    <Compile Include="Services\TileResetService.cs" />
    <Compile Include="Services\WeeklyThaiRecipeSettings.cs" />
    <Compile Include="TemplateSelector\DataTemplateSelector.cs" />
    <Compile Include="TemplateSelector\RecipeDataTemplateSelector.cs" />
    <Compile Include="Utils\BackgroundImageRotator.cs" />
    <Compile Include="Mappers\RecipeMapper.cs" />
    <Compile Include="ViewModels\RecipeDetailViewModel.cs" />
    <Compile Include="ViewModels\RecipeViewModel.cs" />
    <Compile Include="ViewModels\SettingsViewModel.cs" />
    <Compile Include="ViewModels\ViewModelLocator.cs" />
    <Compile Include="Navigation\INavigable.cs" />
    <Compile Include="Navigation\INavigationService.cs" />
    <Compile Include="Navigation\NavigationService.cs" />
    <Compile Include="Navigation\Navigator.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Services\ContainerLocator.cs" />
    <Compile Include="Utils\ApplicationBarExtensions.cs" />
    <Compile Include="Utils\Constants.cs" />
    <Compile Include="Utils\DesignSettingsHelper.cs" />
    <Compile Include="Utils\ISettingsHelper.cs" />
    <Compile Include="Utils\NetworkConnection.cs" />
    <Compile Include="Utils\PropertyChangeAndChangingEventHandlerBase.cs" />
    <Compile Include="Utils\SettingsHelper.cs" />
    <Compile Include="Utils\WeeklyThaiRecipeSettingsManager.cs" />
    <Compile Include="ViewModels\WeeklyRecipeViewModel.cs" />
    <Compile Include="Views\RecipeDetailView.xaml.cs">
      <DependentUpon>RecipeDetailView.xaml</DependentUpon>
    </Compile>
    <Compile Include="Views\WeeklyRecipeView.xaml.cs">
      <DependentUpon>WeeklyRecipeView.xaml</DependentUpon>
    </Compile>
  </ItemGroup>
  <ItemGroup>
    <ApplicationDefinition Include="App.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </ApplicationDefinition>
    <Page Include="Themes\Generic.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Views\RecipeDetailView.xaml">
      <Generator>MSBuild:Compile</Generator>
      <SubType>Designer</SubType>
    </Page>
    <Page Include="Views\WeeklyRecipeView.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <None Include="packages.config" />
    <None Include="Properties\AppManifest.xml" />
    <None Include="Properties\WMAppManifest.xml">
      <SubType>Designer</SubType>
    </None>
  </ItemGroup>
  <ItemGroup>
    <Content Include="ApplicationIcon.png">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="Data\Images\GreenCurry.jpg">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="Data\Images\SomTamThai.jpg">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="Data\Images\TomkhaKai.jpg">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Resource Include="Data\Recipes.xml">
      <SubType>Designer</SubType>
    </Resource>
    <Content Include="Images\NewRecipeTileBack.jpg">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="Images\NewRecipeTileFront.jpg">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="Images\Panorama1.jpg" />
    <Content Include="Images\Panorama2.jpg" />
    <Content Include="Images\Panorama3.jpg" />
    <Content Include="Images\Tile.png">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
    <Content Include="SplashScreenImage.jpg">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    </Content>
  </ItemGroup>
  <ItemGroup />
  <ItemGroup>
    <EmbeddedResource Include="Resources\AppResources.resx">
      <Generator>PublicResXFileCodeGenerator</Generator>
      <LastGenOutput>AppResources.Designer.cs</LastGenOutput>
    </EmbeddedResource>
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
  <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.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>
  -->
  <ProjectExtensions />
</Project>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect http://www.simpletechture.nl
Netherlands Netherlands
Patrick Kalkman is a senior Software Architect with more than 20 years professional development experience. He works for SimpleTechture where he helps teams develop state of the art web applications.

Patrick enjoys writing his blog. It discusses agile software development. Patrick can be reached at patrick@simpletechture.nl.

Published Windows 8 apps:


Published Windows Phone apps:


Awards:

Best Mobile article of March 2012
Best Mobile article of June 2012

Comments and Discussions