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

Presentation Patterns for XAML based Applications

Rate me:
Please Sign up or sign in to vote.
4.99/5 (44 votes)
17 Sep 2013CPOL23 min read 95.5K   1.5K   176  
Design patterns on the presentation layer for WPF, Silverlight and Windows Phone applications.
<?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>8.0.50727</ProductVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{7454408C-5206-4239-8DE0-4191E695AABD}</ProjectGuid>
    <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Itenso.Community.XamlPatterns</RootNamespace>
    <AssemblyName>Itenso.Community.XamlPatterns</AssemblyName>
    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
    <TargetFrameworkVersion>v5.0</TargetFrameworkVersion>
    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    <SilverlightApplication>false</SilverlightApplication>
    <ValidateXaml>true</ValidateXaml>
    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
    <TargetFrameworkProfile />
  </PropertyGroup>
  <!-- This property group is only here to support building this project using the 
       MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs 
       to set the TargetFrameworkVersion to v3.5 -->
  <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\Pub\Silverlight.Debug\</OutputPath>
    <BaseIntermediateOutputPath>obj\Silverlight.Debug\</BaseIntermediateOutputPath>
    <UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
    <DefineConstants>DEBUG;TRACE;SILVERLIGHT</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>..\Pub\Silverlight.Release\</OutputPath>
    <BaseIntermediateOutputPath>obj\Silverlight.Release\</BaseIntermediateOutputPath>
    <UseHostCompilerIfAvailable>false</UseHostCompilerIfAvailable>
    <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="mscorlib" />
    <Reference Include="system" />
    <Reference Include="System.Core" />
    <Reference Include="System.Windows" />
    <Reference Include="System.Windows.Controls, Version=5.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="System.Xml" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Actions\Data\IComparerSortable.cs" />
    <Compile Include="Actions\Data\IComparisonSortable.cs" />
    <Compile Include="Actions\Data\IResettable.cs" />
    <Compile Include="Actions\Data\ISelectable.cs" />
    <Compile Include="Actions\Data\ISortable.cs" />
    <Compile Include="Actions\Data\IClearable.cs" />
    <Compile Include="Actions\Data\ILoadable.cs" />
    <Compile Include="Actions\Data\IRefreshable.cs" />
    <Compile Include="Actions\Data\IUpdateable.cs" />
    <Compile Include="Actions\Data\SelectionChangedEventArgs.cs" />
    <Compile Include="Actions\Item\IItemRefresh.cs" />
    <Compile Include="Actions\Item\IItemDelete.cs" />
    <Compile Include="Actions\Item\IItemCreate.cs" />
    <Compile Include="Actions\Item\IItemEdit.cs" />
    <Compile Include="Actions\Media\IResume.cs" />
    <Compile Include="Actions\Media\IStop.cs" />
    <Compile Include="Actions\Media\IPause.cs" />
    <Compile Include="Actions\Media\IPlay.cs" />
    <Compile Include="Actions\Navigation\ICollapsible.cs" />
    <Compile Include="Actions\Navigation\IExpandable.cs" />
    <Compile Include="PropertyTool.cs" />
    <Compile Include="Collection\ItemCollectionSelection.cs" />
    <Compile Include="Collection\IItemCollectionSelection.cs" />
    <Compile Include="Collection\DisposableCollection.cs" />
    <Compile Include="Collection\IItemCollection.cs" />
    <Compile Include="Collection\IItemCollectionView.cs" />
    <Compile Include="Collection\ItemCollection.cs" />
    <Compile Include="Collection\ItemCollectionView.cs" />
    <Compile Include="Collection\ViewSnycMode.cs" />
    <Compile Include="Commands\Data\ClearCommand.cs" />
    <Compile Include="Commands\Data\RefreshCommand.cs" />
    <Compile Include="Commands\Data\SortCommand.cs" />
    <Compile Include="Commands\Data\SortComparerCommand.cs" />
    <Compile Include="Commands\Data\SortComparisonCommand.cs" />
    <Compile Include="Commands\Edit\ItemRefreshCommand.cs" />
    <Compile Include="Commands\Edit\ItemDeleteCommand.cs" />
    <Compile Include="Commands\Edit\ItemEditCommand.cs" />
    <Compile Include="Commands\Edit\ItemCreateCommand.cs" />
    <Compile Include="Commands\Media\ResumeCommand.cs" />
    <Compile Include="Commands\Media\StopCommand.cs" />
    <Compile Include="Commands\Media\PauseCommand.cs" />
    <Compile Include="Commands\Media\PlayCommand.cs" />
    <Compile Include="Commands\Navigation\CollapseCommand.cs" />
    <Compile Include="Commands\Navigation\ExpandCommand.cs" />
    <Compile Include="Diagnostics\Stopwatch.Silverlight.cs" />
    <Compile Include="Presentation\Dependency\DataItemModel.cs" />
    <Compile Include="Presentation\Dependency\HierarchicalDataItemModel.cs" />
    <Compile Include="Presentation\Dependency\HierarchicalItemModel.cs" />
    <Compile Include="Presentation\Dependency\ItemModel.cs" />
    <Compile Include="Presentation\IDataItemModel.cs" />
    <Compile Include="Presentation\IHierarchicalDataItemModel.cs" />
    <Compile Include="Presentation\IHierarchicalItemModel.cs" />
    <Compile Include="Presentation\IItemCollectionEditor.cs" />
    <Compile Include="Presentation\IItemEditor.cs" />
    <Compile Include="Presentation\IItemEditorProvider.cs" />
    <Compile Include="Presentation\IItemModel.cs" />
    <Compile Include="Presentation\IItemPresenter.cs" />
    <Compile Include="Presentation\IItemPresenterProvider.cs" />
    <Compile Include="Presentation\ItemCollectionEditor.cs" />
    <Compile Include="Presentation\ItemEditor.cs" />
    <Compile Include="Presentation\ItemEditorProvider.cs" />
    <Compile Include="Presentation\ItemPresenter.cs" />
    <Compile Include="Presentation\ItemPresenterCollection.cs" />
    <Compile Include="Presentation\ItemPresenterProvider.cs" />
    <Compile Include="Presentation\IViewItemPresenter.cs" />
    <Compile Include="Presentation\Notifiable\DataItemModel.cs" />
    <Compile Include="Presentation\Notifiable\HierarchicalDataItemModel.cs" />
    <Compile Include="Presentation\Notifiable\HierarchicalItemModel.cs" />
    <Compile Include="Presentation\Notifiable\ItemModel.cs" />
    <Compile Include="Presentation\ViewItemPresenter.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="Properties\AssemblyInfo.Title.Silverlight.cs" />
    <Compile Include="Windows\AsyncDispatcher.cs" />
    <Compile Include="Windows\Converter\FlagToCollapsedConverter.cs" />
    <Compile Include="Windows\Converter\FlagToVisibleConverter.cs" />
    <Compile Include="Windows\Converter\ObjectToCollapsedConverter.cs" />
    <Compile Include="Windows\Converter\ObjectToVisibleConverter.cs" />
    <Compile Include="Windows\Converter\UriToImageConverter.cs" />
    <Compile Include="Windows\Input\Command.cs" />
    <Compile Include="Windows\Input\CommandCollection.cs" />
    <Compile Include="Windows\Input\ICommand.cs" />
    <Compile Include="Windows\Input\ICommandCollection.cs" />
    <Compile Include="Windows\MouseClickManager.cs" />
  </ItemGroup>
  <ItemGroup>
    <None Include="Presentation\ItemModel.cd" />
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
        <SilverlightProjectProperties />
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
  <!-- 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>

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
Software Developer (Senior)
Switzerland Switzerland
👨 Senior .NET Software Engineer

🚀 My Open Source Projects
- Time Period Library 👉 GitHub
- Payroll Engine 👉 GitHub

Feedback and contributions are welcome.



Comments and Discussions