Skip to content

Instantly share code, notes, and snippets.

@kiriappeee
Created August 1, 2012 05:16
Show Gist options
  • Save kiriappeee/3223900 to your computer and use it in GitHub Desktop.
Save kiriappeee/3223900 to your computer and use it in GitHub Desktop.
Adding base styles to controls in XAML
<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