Click here to Skip to main content
15,889,776 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF View Data Template Questions Pin
SledgeHammer0118-Oct-13 4:54
SledgeHammer0118-Oct-13 4:54 
GeneralRe: WPF View Data Template Questions Pin
Gabriel Szabo21-Oct-13 22:35
Gabriel Szabo21-Oct-13 22:35 
GeneralRe: WPF View Data Template Questions Pin
SledgeHammer0122-Oct-13 5:21
SledgeHammer0122-Oct-13 5:21 
QuestionBinding to a collection in code behind Pin
Alessandro Ranieri17-Oct-13 3:24
Alessandro Ranieri17-Oct-13 3:24 
AnswerRe: Binding to a collection in code behind Pin
Matt T Heffron17-Oct-13 7:43
professionalMatt T Heffron17-Oct-13 7:43 
AnswerRe: Binding to a collection in code behind Pin
SledgeHammer0117-Oct-13 9:17
SledgeHammer0117-Oct-13 9:17 
AnswerRe: Binding to a collection in code behind Pin
Abhinav S17-Oct-13 17:12
Abhinav S17-Oct-13 17:12 
QuestionMouse up/down events Pin
columbos1492716-Oct-13 19:52
columbos1492716-Oct-13 19:52 
Hello,
I have something strange, i have defined two Event Triggers with atched commands in my button:

XML
<i:EventTrigger EventName="MouseLeftButtonDown">
   <i:InvokeCommandAction Command="{Binding StartCommand}"/>
</i:EventTrigger>
   <i:EventTrigger EventName="MouseLeftButtonUp">
<i:InvokeCommandAction Command="{Binding StopCommand}"/>
</i:EventTrigger>


LEFT MOUSE BUTTON SCENARIO:
When i use those Events:MouseLeftButtonDown ,MouseLeftButtonUp
the StartCommand invoked when i press(with left mouse button) down the button but when i relese the mouse the stop command is not invoked.

RIGHT MOUSE BUTTON SCENARIO:
When i use those Events:MouseRightButtonDown ,MouseRightButtonUp
the StartCommand invoked when i press(with right mouse button) down the button and the StopCommand invoked when i release the button as expected.

What is the problem why the StopCommand is not invoked?
How can i fire off a command when a button is pressed(with left mouse button) and fire off another command when the button released?

Thanks
AnswerRe: Mouse up/down events Pin
Richard Deeming17-Oct-13 0:42
mveRichard Deeming17-Oct-13 0:42 
AnswerRe: Mouse up/down events Pin
Ashfaque Hussain25-Oct-13 1:08
Ashfaque Hussain25-Oct-13 1:08 
QuestionWPF FrameWork Pin
Kevin Marois16-Oct-13 9:43
professionalKevin Marois16-Oct-13 9:43 
AnswerRe: WPF FrameWork Pin
Marco Bertschi16-Oct-13 10:05
protectorMarco Bertschi16-Oct-13 10:05 
AnswerRe: WPF FrameWork Pin
Pete O'Hanlon16-Oct-13 11:11
mvePete O'Hanlon16-Oct-13 11:11 
AnswerRe: WPF FrameWork Pin
SledgeHammer0116-Oct-13 17:44
SledgeHammer0116-Oct-13 17:44 
AnswerRe: WPF FrameWork Pin
Abhinav S16-Oct-13 18:18
Abhinav S16-Oct-13 18:18 
Questionwhat better way to open the form?! c# wpf Pin
juliogyn16-Oct-13 3:33
juliogyn16-Oct-13 3:33 
AnswerRe: what better way to open the form?! c# wpf Pin
GuyThiebaut16-Oct-13 5:24
professionalGuyThiebaut16-Oct-13 5:24 
AnswerRe: what better way to open the form?! c# wpf Pin
Pete O'Hanlon16-Oct-13 10:29
mvePete O'Hanlon16-Oct-13 10:29 
QuestionWPF databinding versus dispatcher Pin
GuyThiebaut15-Oct-13 5:03
professionalGuyThiebaut15-Oct-13 5:03 
AnswerRe: WPF databinding versus dispatcher Pin
David C# Hobbyist.15-Oct-13 7:11
professionalDavid C# Hobbyist.15-Oct-13 7:11 
GeneralRe: WPF databinding versus dispatcher Pin
GuyThiebaut15-Oct-13 7:59
professionalGuyThiebaut15-Oct-13 7:59 
GeneralRe: WPF databinding versus dispatcher Pin
Mycroft Holmes15-Oct-13 12:40
professionalMycroft Holmes15-Oct-13 12:40 
GeneralRe: WPF databinding versus dispatcher Pin
GuyThiebaut16-Oct-13 2:41
professionalGuyThiebaut16-Oct-13 2:41 
GeneralRe: WPF databinding versus dispatcher Pin
Mycroft Holmes16-Oct-13 12:43
professionalMycroft Holmes16-Oct-13 12:43 
AnswerRe: WPF databinding versus dispatcher Pin
Abhinav S15-Oct-13 18:23
Abhinav S15-Oct-13 18:23 

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.