This is a migrated thread and some comments may be shown as answers.

RadRibbonRadioButton Command binding not working

1 Answer 20 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Tayyaba
Top achievements
Rank 1
Tayyaba asked on 16 Apr 2018, 11:45 AM
Here's my code in which I'm binding the command of RadRibbonRadioButton, but it is not working:

<telerik:RadRibbonGroup Header="Display X/Y in" FontSize="13">
                <telerik:RadCollapsiblePanel>
                    <telerik:RadRibbonRadioButton  x:Name="MapCoordinates"
                                                    IsChecked="{Binding MapCoordinatesChecked}"
                                                    CollapseToSmall="WhenGroupIsSmall"
                                                    CollapseToMedium="WhenGroupIsMedium"
                                                    telerik:ScreenTip.Description="Map Coordinates"
                                                    telerik:ScreenTip.Title="Map Coordinates"
                                                    Size="Large"
                                                    Text="Map Coordinates"
                                                    Command="{Binding RibbonControlRadioButtonClickedCommand}"
                                                    CommandParameter="{Binding ElementName=MapCoordinates}"
                                                    SmallImage="Resources\MapCoordinates.png"
                                                    LargeImage="Resources\MapCoordinates.png" />
 </telerik:RadCollapsiblePanel>
</telerik:RadRibbonGroup>

 

Kindly let me know, how can I bind its command in MVVM architecture.

 

Regards,

Tayyaba 

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 19 Apr 2018, 10:50 AM
Hello Tayyaba,

Thank you for the provided xaml.

I tried to reproduce the described scenario but I am afraid I was not able to. This is why I am attaching the sample project that I used. Please check it out and see how it differs from the setup at your end. Please make sure that the command is a public property and there are no binding errors in Visual Studio's Output window.  If you need further assistance, may I ask you to share how I can reproduce the described scenario on my end? 

Regards,
Vladimir Stoyanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RibbonView and RibbonWindow
Asked by
Tayyaba
Top achievements
Rank 1
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or