Quantcast
Channel: Handling a Button's Click event in XAML? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by Dennis Kassel for Handling a Button's Click event in XAML?

There definitely is a better way. With the help of the Windows.Interactivity assembly you are able to bind the event source to a singe class, containing only the associated action. With this you can...

View Article



Answer by amnezjak for Handling a Button's Click event in XAML?

You can introduce a bool property IsMyTabSelected to your VM, bind it to TabItem.IsSelected:<TabItem x:Name="theTab" IsSelected="{Binding IsMyTabSelected}">Then you just set this flag in the...

View Article

Answer by dkozl for Handling a Button's Click event in XAML?

Error sums it up. You cannot use Setter in EventTrigger. If you want to do it in XAML you can use Storyboard that will select given tab when button is pressed. Something like this:<Button...

View Article

Handling a Button's Click event in XAML?

This feels like a terribly basic question but I am sure there is a better way to do this. I have a Button in my UI which selects a specific tab and fire a Command from the ViewModelHere is the current...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images