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

Radbutton with text and a dynamically coloring circle on it

1 Answer 199 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Chandra Sekhar
Top achievements
Rank 1
Chandra Sekhar asked on 10 Jan 2018, 10:53 PM

Hi,

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.

1 Answer, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 15 Jan 2018, 03:06 PM
Hello,

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.

Regards,
Sia
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
Buttons
Asked by
Chandra Sekhar
Top achievements
Rank 1
Answers by
Sia
Telerik team
Share this question
or