Skip to main content

Microsoft Silverlight

Answered Question ToggleButton usingRSS Feed

(0)

vemuri.kishore
vemuri.k...

Member

Member

50 points

34 Posts

ToggleButton using

I need to use 6 ToggleButtons as a group such that if one checked others should be unchecked (with out brute force method). Also want to add styles so that to differentiate the checked one. Any suggestions would help great.

Regards,
Kishore Vemuri

Telos
Telos

Member

Member

67 points

43 Posts

Answered Question

Re: ToggleButton using

I don't think there is any other way than to manually handle the "checked" states of the buttons on their click event handlers. When one is clicked, all others are disabled. For easier handling you can use the same event handler for all the buttons so you don't have to do the same stuff many times. If there is a better way, I would also like to know about it.

The default style also differentiates the checked state but you can edit the template yourself. This is pretty easy with Blend: Edit Control Parts (Template) -> States (Checked)

--
Antti Simonen
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities