view Messaging/Server/App.xaml @ 26:045dac571339

Working on data binding to a user control
author adminsh@apollo
date Wed, 21 Mar 2012 15:39:53 +0000
parents
children 83c1f62d9370
line wrap: on
line source

<Application x:Class="Server.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:local="clr-namespace:Server"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             StartupUri="UI\MainWindow.xaml"
             mc:Ignorable="d">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/Elysium.Theme;component/Themes/Generic.xaml" />
            </ResourceDictionary.MergedDictionaries>
            <!--  Bug in .Net 4: http://connect.microsoft.com/VisualStudio/feedback/details/555322/global-wpf-styles-are-not-shown-when-using-2-levels-of-references  -->
            <Style TargetType="{x:Type Window}" />
            <local:Locator x:Key="Locator" d:IsDataSource="True" />
            <Color x:Key="MetroMagenta">#FF0097</Color>
            <Color x:Key="MetroPurple">#A200FF</Color>
            <Color x:Key="MetroTeal">#00ABA9</Color>
            <Color x:Key="MetroLime">#8CBF26</Color>
            <Color x:Key="MetroBrown">#996600</Color>
            <Color x:Key="MetroPink">#FF0097</Color>
            <Color x:Key="MetroOrange">#F09609</Color>
            <Color x:Key="MetroBlue">#1BA1E2</Color>
            <Color x:Key="MetroLightBlue">#FFB2E0F4</Color>
            <Color x:Key="MetroRed">#E51400</Color>
            <Color x:Key="MetroGreen">#339933</Color>
            <Color x:Key="MetroGray">#FFF2F2F2</Color>
            <SolidColorBrush x:Key="MetroMagentaBrush" Color="{StaticResource MetroMagenta}" />
            <SolidColorBrush x:Key="MetroPurpleBrush" Color="{StaticResource MetroPurple}" />
            <SolidColorBrush x:Key="MetroTealBrush" Color="{StaticResource MetroTeal}" />
            <SolidColorBrush x:Key="MetroLimeBrush" Color="{StaticResource MetroLime}" />
            <SolidColorBrush x:Key="MetroBrownBrush" Color="{StaticResource MetroBrown}" />
            <SolidColorBrush x:Key="MetroPinkBrush" Color="{StaticResource MetroPink}" />
            <SolidColorBrush x:Key="MetroOrangeBrush" Color="{StaticResource MetroOrange}" />
            <SolidColorBrush x:Key="MetroBlueBrush" Color="{StaticResource MetroBlue}" />
            <SolidColorBrush x:Key="MetroLightBlueBrush" Color="{StaticResource MetroLightBlue}" />
            <SolidColorBrush x:Key="MetroRedBrush" Color="{StaticResource MetroRed}" />
            <SolidColorBrush x:Key="MetroGreenBrush" Color="{StaticResource MetroGreen}" />
            <SolidColorBrush x:Key="MetroGrayBrush" Color="{StaticResource MetroGray}" />

            <BitmapImage x:Key="Mail" UriSource="pack://application:,,,/Common;component/Icons/Mail.png" />

        </ResourceDictionary>
    </Application.Resources>
</Application>