Click here to Skip to main content
15,921,793 members
Home / Discussions / WPF
   

WPF

 
QuestionRe: Resource Dictionary in subprojects Pin
Eslam Afifi25-Jun-09 11:12
Eslam Afifi25-Jun-09 11:12 
AnswerRe: Resource Dictionary in subprojects Pin
User 27100929-Jun-09 2:42
User 27100929-Jun-09 2:42 
GeneralRe: Resource Dictionary in subprojects Pin
Eslam Afifi29-Jun-09 15:31
Eslam Afifi29-Jun-09 15:31 
GeneralRe: Resource Dictionary in subprojects Pin
User 27100929-Jun-09 15:37
User 27100929-Jun-09 15:37 
GeneralRe: Resource Dictionary in subprojects Pin
Eslam Afifi29-Jun-09 15:39
Eslam Afifi29-Jun-09 15:39 
QuestionHow to get the control position to add another control below that? Pin
salon24-Apr-09 2:30
salon24-Apr-09 2:30 
AnswerRe: How to get the control position to add another control below that? Pin
Ray Cassick24-Apr-09 3:16
Ray Cassick24-Apr-09 3:16 
AnswerRe: How to get the control position to add another control below that? Pin
Mark Salsbery25-Apr-09 7:42
Mark Salsbery25-Apr-09 7:42 
Questionrendertransformorigin fails Pin
VCsamir24-Apr-09 1:56
VCsamir24-Apr-09 1:56 
QuestionWeird behavior styling a Border Pin
Foxandxss23-Apr-09 13:34
Foxandxss23-Apr-09 13:34 
AnswerRe: Weird behavior styling a Border Pin
#realJSOP23-Apr-09 22:38
professional#realJSOP23-Apr-09 22:38 
GeneralRe: Weird behavior styling a Border Pin
Pete O'Hanlon23-Apr-09 23:16
mvePete O'Hanlon23-Apr-09 23:16 
GeneralRe: Weird behavior styling a Border Pin
#realJSOP24-Apr-09 2:07
professional#realJSOP24-Apr-09 2:07 
GeneralRe: Weird behavior styling a Border Pin
Foxandxss23-Apr-09 23:40
Foxandxss23-Apr-09 23:40 
QuestionMessage Removed Pin
23-Apr-09 10:46
professionalN_tro_P23-Apr-09 10:46 
AnswerRe: WPF DateTime picker Pin
#realJSOP23-Apr-09 10:48
professional#realJSOP23-Apr-09 10:48 
AnswerRe: WPF DateTime picker Pin
Mark Salsbery23-Apr-09 11:16
Mark Salsbery23-Apr-09 11:16 
GeneralMessage Removed Pin
23-Apr-09 11:40
professionalN_tro_P23-Apr-09 11:40 
GeneralRe: WPF DateTime picker Pin
Mark Salsbery23-Apr-09 12:40
Mark Salsbery23-Apr-09 12:40 
GeneralMessage Removed Pin
24-Apr-09 2:55
professionalN_tro_P24-Apr-09 2:55 
GeneralRe: WPF DateTime picker Pin
Mark Salsbery24-Apr-09 6:01
Mark Salsbery24-Apr-09 6:01 
Questione.currentTarget in WPF? Pin
emptythetill23-Apr-09 8:52
emptythetill23-Apr-09 8:52 
AnswerRe: e.currentTarget in WPF? Pin
Pete O'Hanlon24-Apr-09 2:11
mvePete O'Hanlon24-Apr-09 2:11 
This is trivial in WPF. All you need do is declare a storyboard inside a trigger that applys to the button type. Here's a simple example:
<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <Page.Resources>
    <Style TargetType="{x:Type Button}">
      <Style.Triggers>
        <Trigger Property="IsMouseOver" Value="True">
          <Trigger.EnterActions>
            <BeginStoryboard>
              <Storyboard>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" To="0.20" Duration="0:0:0.5" />
              </Storyboard>
            </BeginStoryboard>
          </Trigger.EnterActions>
          <Trigger.ExitActions>
            <BeginStoryboard>
              <Storyboard>
                <DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" />
              </Storyboard>
            </BeginStoryboard>
          </Trigger.ExitActions>
        </Trigger>
      </Style.Triggers>
    </Style>
  </Page.Resources>
  <StackPanel>  
    <Button Content="Hello" />
    <Button Content="Hello 2" />
  </StackPanel>
</Page>


"WPF has many lovers. It's a veritable porn star!" - Josh Smith

As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.


My blog | My articles | MoXAML PowerToys | Onyx



GeneralRe: e.currentTarget in WPF? Pin
emptythetill24-Apr-09 3:48
emptythetill24-Apr-09 3:48 
GeneralRe: e.currentTarget in WPF? Pin
Pete O'Hanlon24-Apr-09 4:30
mvePete O'Hanlon24-Apr-09 4:30 

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.