Hi,
After all sorts of tests, I came to the final conclusion.
When I work this way:
<telerik:RadButton
Content="Clone"
Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.CloneCommand}"
CommandParameter="{Binding}">
</telerik:RadButton>
The Command is called properly.
But when I put it inside RadDropDownButton:
<telerik:RadDropDownButton>
<telerik:RadDropDownButton.DropDownContent>
<telerik:RadButton
Content="Clone"
Command="{Binding RelativeSource={RelativeSource AncestorType=UserControl}, Path=DataContext.CloneCommand}"
CommandParameter="{Binding }" >
</telerik:RadButton>
</telerik:RadDropDownButton.DropDownContent>
</telerik:RadDropDownButton>
The Command doesn't fire
Would appreciate help,
Thanks,
I've tested your code snippet, but the command is executed as expected. You can take a look at the attached project and let me know if I am missing anything. Also, you can check the Output pane of Visual Studio on your side for any binding errors.