Binding command to button under RadTabControl.AdditionalContent not working

0 Answers 30 Views
Buttons TabControl
Top achievements
Rank 1
ofir asked on 15 Mar 2023, 06:42 AM

I have the following

For some reason the binding to MyCommand not triggering at all at my view model
Im using MvvmLight RelayCommand if it matters everywhere in my app

I tried to change Button to RadButton and the result are the same

              <StackPanel Orientation="horizontal"
                                    DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AnsectorType={x:Type UserControl}}, Path=DataContext}">
                      <Button Command="{Binding Path=MyCommand}">
                  <!-- Here everything works just fine -->

Martin Ivanov
Telerik team
commented on 16 Mar 2023, 02:22 PM

I've tested this and the data binding works properly. You can check the attached and see if I am missing anything.

No answers yet. Maybe you can help?

Buttons TabControl
Asked by
Top achievements
Rank 1
Share this question