Created
August 1, 2012 05:16
-
-
Save kiriappeee/3223900 to your computer and use it in GitHub Desktop.
Adding base styles to controls in XAML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<window.resources> | |
<style targettype="{x:Type ContentControl}" x:key="BaseContentControlStyle"> | |
<setter Property="Foreground" Value="#FF204E93" /> | |
<style basedon="{StaticResource BaseContentControlStyle}" targettype="{x:Type Label}"> | |
<setter Property="FontSize" Value="9.2pt" /> | |
<style basedon="{StaticResource BaseContentControlStyle}" targettype="{x:Type Button}"> | |
</Window.Resources> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment