C#C
C#3y ago
ggppjj

❔ Trigger MediaElement.play() the MVVM way?

I have a button that is bound to a command that I would additionally like to trigger a hidden mediaelement from the community toolkit to play when it is clicked, and my code is (attempting to) follow the MVVM patterns. I have the mediaelement defined in the view, how would I cause a button click to trigger it?
Was this page helpful?