Click here to Skip to main content
12,449,440 members (59,692 online)
Click here to Skip to main content

Stats

257.1K views
51.8K downloads
208 bookmarked
Posted

Visual Studio 2012 Metro Styles for WPF

, 9 Dec 2012 CPOL
Black Metro Styles for Button, ListBox, Menu, ScrollBar, TabControl, TextBox, ComboBox, DataGrid and GroupBox
demo
MahApps.Metro.dll
Selen.Wpf.Core.dll
Selen.Wpf.Core.pdb
Selen.Wpf.DemoApplication.exe
Selen.Wpf.DemoApplication.pdb
Selen.Wpf.GenericAppTree.Contracts.dll
Selen.Wpf.GenericAppTree.Contracts.pdb
Selen.Wpf.GenericAppTree.dll
Selen.Wpf.GenericAppTree.pdb
Selen.Wpf.SystemStyles.dll
Selen.Wpf.SystemStyles.pdb
System.Windows.Interactivity.dll
source
lib
MahApps.Metro.dll
System.Windows.Interactivity.dll
Selen.Wpf.Core
Properties
Selen.Wpf.Core.csproj.user
Selen.Wpf.Key.snk
Selen.Wpf.DemoApplication
Images
SplashScreen.png
standard.png
Properties
Selen.Wpf.GenericAppTree
Selen.Wpf.GenericAppTree.Contracts
Properties
Selen.Wpf.Key.snk
Properties
Selen.Wpf.Key.snk
Selen.Wpf.SystemStyles
Actions
Properties
Selen.Wpf.Key.snk
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="pack://application:,,,/Selen.Wpf.Core;component/Resources.xaml"/>
    </ResourceDictionary.MergedDictionaries>
    <Style x:Key="StandardGroupBox" TargetType="GroupBox">
        <Setter Property="Foreground" Value="{StaticResource Foreground}"/>
        <Setter Property="BorderBrush" Value="{StaticResource BackgroundNormal}"/>
        <Setter Property="BorderThickness" Value="2"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type GroupBox}">
                    <Grid SnapsToDevicePixels="true">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="20"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <ContentPresenter ContentSource="Header" Margin="2"/>
                        <ContentPresenter Margin="{TemplateBinding Padding}" Grid.Row="1"/>
                        <Border SnapsToDevicePixels="True" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Grid.Row="1"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </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)

Share

About the Author

Winfried Lötzsch
Student
Germany Germany
I´m a student and hobby programmer (mostly C#) from Germany.
For those German guys, who might be looking for a translated version of my stuff, I´m running a blog.

You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.160811.3 | Last Updated 9 Dec 2012
Article Copyright 2012 by Winfried Lötzsch
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid