Click here to Skip to main content
15,886,919 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Winfroms Component Z-Index Pin
AlphaDeltaTheta17-Jul-13 16:50
AlphaDeltaTheta17-Jul-13 16:50 
GeneralRe: Winfroms Component Z-Index Pin
Pete O'Hanlon17-Jul-13 20:22
mvePete O'Hanlon17-Jul-13 20:22 
GeneralRe: Winfroms Component Z-Index Pin
Richard Deeming18-Jul-13 1:16
mveRichard Deeming18-Jul-13 1:16 
GeneralRe: Winfroms Component Z-Index Pin
Pete O'Hanlon18-Jul-13 1:21
mvePete O'Hanlon18-Jul-13 1:21 
GeneralRe: Winfroms Component Z-Index Pin
Richard Deeming18-Jul-13 1:24
mveRichard Deeming18-Jul-13 1:24 
AnswerRe: Winfroms Component Z-Index Pin
Pete O'Hanlon18-Jul-13 12:24
mvePete O'Hanlon18-Jul-13 12:24 
QuestionHow to handle button click event from DataTemplate Pin
jainga1021314-Jul-13 15:35
jainga1021314-Jul-13 15:35 
AnswerRe: How to handle button click event from DataTemplate Pin
AlphaDeltaTheta14-Jul-13 17:52
AlphaDeltaTheta14-Jul-13 17:52 
Templates work only with triggers. These triggers are use to set various properties of the button.
See this for a more detailed understanding:Triggers in WPF[^]

ClickEvent is handled in code. It is completely independent from Triggers. You should be able to attach an event handler in the XAML declaration like this.

XML
<Button x:Name="button1" Click="button1_onClick" Template={StaticResource MyTemplate} />


In code:
C#
private void button1_onClick(object sender, RoutedEventArgs e)
{
     //handle button click event here.
}


See MSDN for more details:
Button Class[^]
ButtonBase.Click Event[^]
Beauty cannot be defined by abscissas and ordinates; neither are circles and ellipses created by their geometrical formulas.


Source

GeneralRe: How to handle button click event from DataTemplate Pin
jainga1021317-Jul-13 10:46
jainga1021317-Jul-13 10:46 
QuestionMy Thoughts On My WPF App Design Pin
Kevin Marois12-Jul-13 11:40
professionalKevin Marois12-Jul-13 11:40 
AnswerRe: My Thoughts On My WPF App Design Pin
Mycroft Holmes12-Jul-13 13:06
professionalMycroft Holmes12-Jul-13 13:06 
GeneralRe: My Thoughts On My WPF App Design Pin
Kevin Marois14-Jul-13 13:42
professionalKevin Marois14-Jul-13 13:42 
GeneralRe: My Thoughts On My WPF App Design Pin
Mycroft Holmes14-Jul-13 14:11
professionalMycroft Holmes14-Jul-13 14:11 
GeneralRe: My Thoughts On My WPF App Design Pin
Kevin Marois15-Jul-13 5:11
professionalKevin Marois15-Jul-13 5:11 
GeneralRe: My Thoughts On My WPF App Design Pin
Mycroft Holmes16-Jul-14 21:46
professionalMycroft Holmes16-Jul-14 21:46 
GeneralRe: My Thoughts On My WPF App Design Pin
Kevin Marois17-Jul-14 6:49
professionalKevin Marois17-Jul-14 6:49 
GeneralRe: My Thoughts On My WPF App Design Pin
Mycroft Holmes17-Jul-14 12:43
professionalMycroft Holmes17-Jul-14 12:43 
GeneralRe: My Thoughts On My WPF App Design Pin
Kevin Marois17-Jul-14 12:59
professionalKevin Marois17-Jul-14 12:59 
GeneralRe: My Thoughts On My WPF App Design Pin
Mycroft Holmes17-Jul-14 14:09
professionalMycroft Holmes17-Jul-14 14:09 
QuestionWPF ComboBox Problem Pin
Kevin Marois10-Jul-13 19:13
professionalKevin Marois10-Jul-13 19:13 
AnswerRe: WPF ComboBox Problem Pin
Richard Deeming11-Jul-13 1:58
mveRichard Deeming11-Jul-13 1:58 
GeneralRe: WPF ComboBox Problem Pin
Kevin Marois11-Jul-13 17:48
professionalKevin Marois11-Jul-13 17:48 
GeneralRe: WPF ComboBox Problem Pin
Kevin Marois19-Jul-13 16:27
professionalKevin Marois19-Jul-13 16:27 
Questionhow to make an navigation title dropdownlist Pin
neodeaths10-Jul-13 9:45
neodeaths10-Jul-13 9:45 
AnswerRe: how to make an navigation title dropdownlist Pin
Mycroft Holmes10-Jul-13 12:44
professionalMycroft Holmes10-Jul-13 12:44 

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.