Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / WPF

Layers Pattern in Practice

Rate me:
Please Sign up or sign in to vote.
4.96/5 (59 votes)
23 Apr 2010CPOL25 min read 152.6K   8.1K   187  
Layers Pattern via a WPF project.
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:core="clr-namespace:System;assembly=mscorlib"
                    xmlns:vc="clr-namespace:Visifire.Charts;assembly=WPFVisifire.Charts">
    
    <!-- Created Ciumac Sergiu 19.01.2009 -->
    <!-- Visifire Chart Component-->
    <!--______________________Chart Style________________________________-->
    <Style x:Key="ChartStyle" TargetType="{x:Type vc:Chart}">
        <Setter Property="Background">
            <Setter.Value>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="LightBlue" Offset="0"/>
                    <GradientStop Color="White" Offset=".5"/>
                    <GradientStop Color="WhiteSmoke" Offset="1"/>
                </LinearGradientBrush>
            </Setter.Value>
        </Setter>
        <Setter Property="View3D">
            <Setter.Value>
                <core:Boolean>true</core:Boolean>
            </Setter.Value>
        </Setter>
        <Setter Property="BorderThickness" Value="5"/>
    </Style>
    <Style x:Key="TitleStyle" TargetType="{x:Type vc:Title}">
        <Setter Property="FontSize" Value="16"/>
        <Setter Property="FontColor" Value="Black"/>
    </Style>
</ResourceDictionary>

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
Moldova (Republic of) Moldova (Republic of)
Interested in computer science, math, research, and everything that relates to innovation. Fan of agnostic programming, don't mind developing under any platform/framework if it explores interesting topics. In search of a better programming paradigm.

Comments and Discussions