Click here to Skip to main content
15,884,298 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Silverlight vs WPF in the Browser Pin
Pete O'Hanlon26-Feb-12 19:51
mvePete O'Hanlon26-Feb-12 19:51 
GeneralRe: Silverlight vs WPF in the Browser Pin
Mycroft Holmes26-Feb-12 20:43
professionalMycroft Holmes26-Feb-12 20:43 
AnswerRe: Silverlight vs WPF in the Browser Pin
Abhinav S26-Feb-12 20:17
Abhinav S26-Feb-12 20:17 
GeneralRe: Silverlight vs WPF in the Browser Pin
Mycroft Holmes26-Feb-12 20:38
professionalMycroft Holmes26-Feb-12 20:38 
AnswerRe: Silverlight vs WPF in the Browser Pin
Abhinav S26-Feb-12 21:11
Abhinav S26-Feb-12 21:11 
GeneralRe: Silverlight vs WPF in the Browser Pin
Mycroft Holmes26-Feb-12 21:26
professionalMycroft Holmes26-Feb-12 21:26 
Questionbutton style Pin
michaelgr126-Feb-12 4:14
michaelgr126-Feb-12 4:14 
AnswerRe: button style Pin
Pete O'Hanlon26-Feb-12 9:52
mvePete O'Hanlon26-Feb-12 9:52 
You only need to supply one trigger. What you do is define the standard style, and as you have a boolean condition, the other condition will be applied when appropriate. Here's what I mean:
XML
<Style TargetType="{x:Type Label}">
  <Setter Property="Foreground" Value="Black" />
  <Style.Triggers>
    <Trigger Property="IsMouseOver" Value="False">
      <Setter Property="Foreground" Value="White" />
    </Trigger>
  </Style.Triggers>
</Style>
As you can see, you have a default style which gets overriden by the trigger, and when the trigger no longer applies, it reverts back to the default style.

*pre-emptive celebratory nipple tassle jiggle* - Sean Ewington

"Mind bleach! Send me mind bleach!" - Nagy Vilmos


My blog | My articles | MoXAML PowerToys | Mole 2010 - debugging made easier - my favourite utility


GeneralRe: button style Pin
michaelgr126-Feb-12 20:23
michaelgr126-Feb-12 20:23 
GeneralRe: button style Pin
Pete O'Hanlon26-Feb-12 22:10
mvePete O'Hanlon26-Feb-12 22:10 
AnswerRe: button style Pin
Bernhard Hiller26-Feb-12 20:48
Bernhard Hiller26-Feb-12 20:48 
Questionmulti setter Pin
michaelgr125-Feb-12 3:59
michaelgr125-Feb-12 3:59 
QuestionHow to snap polygon to another polygon?? Pin
iamnewguy24-Feb-12 10:24
iamnewguy24-Feb-12 10:24 
QuestionProblem with Entity Data Model's connectionstring - WPF Pin
jadughar24-Feb-12 4:35
jadughar24-Feb-12 4:35 
AnswerRe: Problem with Entity Data Model's connectionstring - WPF Pin
Dean Oliver24-Feb-12 21:37
Dean Oliver24-Feb-12 21:37 
QuestionWPF and MVVM Pin
radhwane23-Feb-12 22:43
radhwane23-Feb-12 22:43 
AnswerRe: WPF and MVVM Pin
Pete O'Hanlon23-Feb-12 23:02
mvePete O'Hanlon23-Feb-12 23:02 
GeneralRe: WPF and MVVM Pin
Abhinav S24-Feb-12 17:12
Abhinav S24-Feb-12 17:12 
AnswerRe: WPF and MVVM Pin
Abhinav S24-Feb-12 17:12
Abhinav S24-Feb-12 17:12 
Questionmouse click Pin
michaelgr122-Feb-12 21:04
michaelgr122-Feb-12 21:04 
AnswerRe: mouse click Pin
Abhinav S22-Feb-12 21:41
Abhinav S22-Feb-12 21:41 
GeneralRe: mouse click Pin
michaelgr122-Feb-12 21:45
michaelgr122-Feb-12 21:45 
GeneralRe: mouse click Pin
Pete O'Hanlon22-Feb-12 22:02
mvePete O'Hanlon22-Feb-12 22:02 
GeneralRe: mouse click Pin
michaelgr122-Feb-12 22:04
michaelgr122-Feb-12 22:04 
AnswerRe: mouse click Pin
Abhinav S23-Feb-12 0:49
Abhinav S23-Feb-12 0:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.