Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 0.41 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. WPF: ControlTemplate vs Style that Changes Template
  2. <Style TargetType="{x:Type Button}" x:Key="roundButton">
  3.   <Setter Property="Template">
  4.      <Setter.Value>
  5.         <ControlTemplate Target="{x:Type Button}">
  6.             bla bla bla...
  7.         </ControlTemplate>
  8.      </Setter.Value>
  9.   </Setter>
  10. </Style>
  11.        
  12. <ControlTemplate Target="{x:Type Button}" x:Key="roundButton">
  13.     bla bla bla...
  14. </ControlTemplate>