RadRibbonRadioButton Command binding not working

2 posts, 0 answers
  1. Tayyaba
    Tayyaba avatar
    43 posts
    Member since:
    Apr 2017

    Posted 16 Apr 2018 Link to this post

    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 

  2. Vladimir Stoyanov
    Admin
    Vladimir Stoyanov avatar
    481 posts

    Posted 19 Apr 2018 Link to this post

    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.
Back to Top