Search
Setup for Free
C
C#
❔ WPF command
Original message was deleted
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,157
Members
View on Discord
Similar Threads
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
S
sibber
•
11/24/22, 1:44 PM
why are you subscribed to the click event
E
Elio
•
11/24/22, 1:45 PM
the last button is there only to test if the navigatecommand in my datacontext
(navigationbarviewmodel
) work well
S
sibber
•
11/24/22, 1:46 PM
how is it supposed to do that
S
sibber
•
11/24/22, 1:46 PM
just put a breakpoint in your command
.Execute
E
Elio
•
11/24/22, 1:46 PM
i
've already done that and the 3 button with the command do not execute the method
S
sibber
how is it supposed to do that
E
Elio
•
11/24/22, 1:47 PM
was just to see if the navigation was correct
, if my page change well
S
sibber
•
11/24/22, 1:47 PM
are you sure your datacontext is set properly
E
Elio
•
11/24/22, 1:47 PM
i think but not 100
% sure
S
sibber
•
11/24/22, 1:48 PM
make sure
E
Elio
•
11/24/22, 1:48 PM
E
Elio
•
11/24/22, 1:48 PM
with this breakpoint i can see that my datacontext contain the good information
S
sibber
•
11/24/22, 1:49 PM
when you click this button does the navigation work
?
E
Elio
•
11/24/22, 1:49 PM
yes
E
Elio
•
11/24/22, 1:50 PM
and when i click on the button which is sub to the command it do not execute the command
S
sibber
•
11/24/22, 1:50 PM
are you 100
% sure the breakpoint in the command doesnt get hit
?
E
Elio
•
11/24/22, 1:51 PM
yes cause the beak point is hit when i click on the button
_click and it is
'nt when i click on the command button
S
sibber
•
11/24/22, 1:52 PM
not this breakpoint
S
sibber
•
11/24/22, 1:52 PM
did you put a break point in the command
's Execute method
?
E
Elio
•
11/24/22, 1:52 PM
E
Elio
•
11/24/22, 1:52 PM
and if i click on the command button the second breakpoint do not get triggered
S
sibber
•
11/24/22, 1:53 PM
put it at the start of the method
S
sibber
•
11/24/22, 1:54 PM
wait the breakpoint is hit in your screenshot lmao
E
Elio
•
11/24/22, 1:54 PM
nothing change it does the same
S
sibber
•
11/24/22, 1:54 PM
its yellow
E
Elio
•
11/24/22, 1:54 PM
yeah like i said hit when i use click button and not when i use command button
S
sibber
•
11/24/22, 1:54 PM
oh thats from the event
E
Elio
•
11/24/22, 1:54 PM
yup
E
Elio
•
11/24/22, 1:55 PM
i just wanted to be sure that the
"process
" was functional that
's why i setup this click event
S
sibber
•
11/24/22, 1:55 PM
no idea then sorry
E
Elio
•
11/24/22, 1:56 PM
ok no problem
A
Accord
•
11/25/22, 2:04 PM
Was this issue resolved
? If so
, run
/close
/close
otherwise I will mark this as stale and this post will be archived until there is new activity
.
E
Elio
•
11/28/22, 8:34 AM
.
Similar Threads
Wpf Button CommandParameter
C
C# / help
4y ago
WPF Command approach.
C
C# / help
2y ago
❔ WPF Command Datagrid
C
C# / help
3y ago
Command WPF with viewmodel
C
C# / help
4y ago