Click here to Skip to main content
15,916,180 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: Editing multiple item types in the same control Pin
Mark Salsbery24-Aug-09 8:43
Mark Salsbery24-Aug-09 8:43 
QuestionFire EventTrigger on WPF Style Change? [SOLVED] Pin
AspDotNetDev21-Aug-09 11:20
protectorAspDotNetDev21-Aug-09 11:20 
AnswerRe: Fire EventTrigger on WPF Style Change? Pin
User 27100922-Aug-09 5:10
User 27100922-Aug-09 5:10 
GeneralRe: Fire EventTrigger on WPF Style Change? Pin
AspDotNetDev22-Aug-09 10:17
protectorAspDotNetDev22-Aug-09 10:17 
GeneralRe: Fire EventTrigger on WPF Style Change? Pin
User 27100922-Aug-09 12:22
User 27100922-Aug-09 12:22 
GeneralRe: Fire EventTrigger on WPF Style Change? Pin
AspDotNetDev22-Aug-09 17:23
protectorAspDotNetDev22-Aug-09 17:23 
GeneralRe: Fire EventTrigger on WPF Style Change? Pin
AspDotNetDev22-Aug-09 22:40
protectorAspDotNetDev22-Aug-09 22:40 
GeneralRe: Fire EventTrigger on WPF Style Change? Pin
User 27100923-Aug-09 4:43
User 27100923-Aug-09 4:43 
Seems overly complex. Give this a try.

In the OnStyleChnaged method you can start and stop your storyboards as needed.

Public Class MyButton
Inherits Button

Protected Overrides Sub OnStyleChanged(ByVal oldStyle As System.Windows.Style, ByVal newStyle As System.Windows.Style)
MyBase.OnStyleChanged(oldStyle, newStyle)
End Sub

End Class

Cheers, Karl

» CodeProject 2008 MVP, CodeProject 2009 MVP

My Blog | Mole's Home Page |
XAML Power Toys Home Page

Just a grain of sand on the worlds beaches.



modified 27-Feb-21 21:01pm.

AnswerRe: Fire EventTrigger on WPF Style Change? [SOLUTION] Pin
AspDotNetDev23-Aug-09 15:09
protectorAspDotNetDev23-Aug-09 15:09 
Questionservice Cross-domain issue. Pin
thrakazog21-Aug-09 8:33
thrakazog21-Aug-09 8:33 
AnswerResolved. Pin
thrakazog21-Aug-09 9:52
thrakazog21-Aug-09 9:52 
QuestionSheet music Pin
Tony Pottier21-Aug-09 5:58
Tony Pottier21-Aug-09 5:58 
AnswerRe: Sheet music Pin
#realJSOP21-Aug-09 7:12
professional#realJSOP21-Aug-09 7:12 
GeneralRe: Sheet music Pin
Tony Pottier21-Aug-09 10:59
Tony Pottier21-Aug-09 10:59 
GeneralRe: Sheet music Pin
Richard MacCutchan31-Aug-09 5:19
mveRichard MacCutchan31-Aug-09 5:19 
QuestionHow to handle Different Modules in MVP ?? Pin
Krishna Aditya20-Aug-09 22:50
Krishna Aditya20-Aug-09 22:50 
AnswerRe: How to handle Different Modules in MVP ?? Pin
Richard MacCutchan31-Aug-09 5:32
mveRichard MacCutchan31-Aug-09 5:32 
QuestionHow to stretch the image of (1* 66 ) pixel Pin
Krishna Aditya20-Aug-09 5:15
Krishna Aditya20-Aug-09 5:15 
AnswerRe: How to stretch the image of (1* 66 ) pixel Pin
Krishna Aditya20-Aug-09 5:53
Krishna Aditya20-Aug-09 5:53 
QuestionNavigation framework in tabs Pin
tcook81520-Aug-09 2:50
tcook81520-Aug-09 2:50 
AnswerRe: Navigation framework in tabs Pin
Michael Sync29-Aug-09 18:56
Michael Sync29-Aug-09 18:56 
QuestionHow to create a collapsible panel in WPF Pin
Krishna Aditya19-Aug-09 23:45
Krishna Aditya19-Aug-09 23:45 
AnswerRe: How to create a collapsible panel in WPF Pin
Pete O'Hanlon20-Aug-09 0:08
mvePete O'Hanlon20-Aug-09 0:08 
GeneralRe: How to create a collapsible panel in WPF Pin
abetterword29-Dec-10 9:20
abetterword29-Dec-10 9:20 
QuestionUDP & WCF Pin
Mohammad Dayyan19-Aug-09 22:00
Mohammad Dayyan19-Aug-09 22:00 

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.