You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
How should I define event binding in C# just like in XAML?
In this code snippet, I did not specify the Source to bind to, but this resulted in an error.
However, in XAML, the Source does not need to be specified, I just need to set the DataContext for the corresponding control.
In this scenario, how should I modify my code?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How should I define event binding in C# just like in XAML?
In this code snippet, I did not specify the Source to bind to, but this resulted in an error.
However, in XAML, the Source does not need to be specified, I just need to set the DataContext for the corresponding control.
In this scenario, how should I modify my code?
Beta Was this translation helpful? Give feedback.
All reactions