Click here to Skip to main content
15,896,063 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a Style Like

Style
ControlTemplate Section for Radio Button
----1. Outer Circle - Ellipse (Name BORDER)
----2. Inner Dot/Bulletin - Ellipse (CheckMark)

start VisualStateManager
----Start VisualStateGroups
--------start VisualStateGroup
--------CommanStates
------------1. Disabled (Done using Story Board)
----------------Colored Border with gray Fill
----------------CheckMark opacity is set 0
------------2. Normal (Done using Story Board)
----------------if IsEnabled Property is True then run story board which will set radio button in Checked State
----------------else IsEnabled Property is false then run story board which will set radio button in UnChecked State
----End VisualStateGroup
----start VisualStateGroup
--------CheckStates
------------1. Checked (Done using Story Board)
----------------Set back ground color to Green
----------------Set Bulletin opacity to 1
------------2. Unchecked (Done using Story Board)
----------------Set back ground color to Red
----------------Set Bulletin opacity to 0
----End VisualStateGroup
----End VisualStateGroups
----End VisualStateManager
----End ControlTemplate
----End Style


Question : Check , Unchecked and disabled state works fine. But if both the radio buttons in group get enabled then they move into Normal state ..... Problem lies here that depending upon IsEnabled property of radio button i want to call different storyboards. how it can be done

things what is tried is Triggers - setter .... but eventually it did not worked.
Posted
Updated 5-Jun-15 3:34am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900