Radbutton with text and a dynamically coloring circle on it

2 posts, 0 answers
  1. Chandra Sekhar
    Chandra Sekhar avatar
    16 posts
    Member since:
    Sep 2016

    Posted 10 Jan 2018 Link to this post


    I have a requirement for which I need a button(radbutton) control with a label and a small circle. The circle should show a different color based on some other result returned from other data source. As per the documentation I understood like a button either can have a text label or an image on it, but not both. Can someone get me a sample project on how to achieve that. Please find the attached sample.

  2. Sia
    Sia avatar
    745 posts

    Posted 15 Jan 2018 Link to this post


    You can use a similar approach to the one shown in our buttons' FirstLook demo. Please check the last view where RadToggleButtons are used with three states. You can see the SeatsReserveForm.xaml and the ToggleButtonStyle inside. If your scenario is with more states, than the better solution would be to use RadButton. Also you will need to add in the template a TextBlock binded to another property.

    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