KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a WPF Microsoft Surface Application and I'm using MVVM-Pattern. I have some buttons that are created in code behind and I would like to bind commands to them, but I only know how that works in the XAML like this: <Custom:SurfaceButton Command="{Binding SaveReservationCommandBinding, Mode=OneWay}"/> But I cannot do it like this because my buttons do not exist in the XAML, only in the code behind. So how would a command binding like that works in code behind?
Tags (comma-separated)
Save Edits
Cancel