Answer Overflow Logo
Change Theme
Search Answer Overflow
GitHub
Add Your Server
Login
Home
Popular
Topics
Gaming
Programming
nohopestage
Posts
Comments
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Glad I could help!
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
You can also remove the attribute now
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Glad to hear! What did you do to fix it?
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
So because you didn't set
CommandParameter
in xaml, you get a
NullReferenceException
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Buttons have a
Command
property that you already seem to be using, and a
CommandParameter
that you can use to pass some data every time the bound command is executed
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
It's supposed to be a parameter you assign in xaml. The property is
CommandParameter
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
What errors are you having with it?
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
You mean the
UpdateWeeklyData
one?
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
I mean if you need a command to run async code, use
AsyncRelayCommand
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Either way, if you need async commands, use the appropriate type (AsyncRelayCommand)
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Hmm, then I probably don't know enough about how tasks work
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
No, I don't think so
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Guess that's why it works, but then it's no different than a regular void-returning method
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Is it a synchronous task?
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Just use the command type I shared above
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Yes
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
You just assign the async task to a discarded task variable, so basically your command does nothing
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
Both
56 replies
C
C#
•
Created by Kingdawanage on 2/25/2024 in
#help
✅ Need help understanding parent and child views
The task doesn't run because it's not awaited. Use
AsyncRelayCommand
instead
56 replies
C
C#
•
Created by BartShoot on 2/21/2024 in
#help
✅ can you put dotnet publish *.dll in some library folder?
This doesn't let you put dependencies in a separate folder AFAIK, but you can try it as an alternative:
https://github.com/Fody/Costura
54 replies