❔ binding Command in user control button problem
The problem is that nothing is happening but when i'm making normal button in my main window with Command and CommandParameter everything is fine what have i done wrong? And there is no errors in compilation
15 Replies
$rulesofwpf
Please explain more in detail what the issue is
just when iam clicking buttons nothing happens
it doesnt trigger the UpdateViewCommand
from MainWindow
it is reference to Command in my custom button
Please post the code of that button
$paste
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
the most important references i send in pics
BlazeBin - gtqvzzibjhfx
A tool for sharing your source code with the world!
That says nothing, I'd like the full code of the button, not the XAML.
I gave there full code for button with xaml in it
https://media.discordapp.net/attachments/1077989354900824165/1077989355500609648/code_from_the_custom_button.png
Do not screenshot code, it's just easier to read it by text
I gave it in pastebin
But maybe i gave you wrong link
Ah okay i need to give link every class
BlazeBin - ozbufzywpqjw
A tool for sharing your source code with the world!
I have no idea whats wrong with it that it cant trigger that command
and for reference
like i said before normal button works
and with code of this button i was checking if i have done something wrong but everything looks fine
Okay i found solution i needed to delete DataContext in xaml from button and add for every binding ElementName
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.