Ribbon Toggle Button three state

Ribbon Toggle Button three state

eirij
Advocate Advocate
680 Views
1 Reply
Message 1 of 2

Ribbon Toggle Button three state

eirij
Advocate
Advocate

Hi,

 

what is the proper way to use Ribbon toggle  Button with three states. I set the Istogglethreestate to true but it doesn't go to third state.. Am i missing something??

0 Likes
Accepted solutions (1)
681 Views
1 Reply
Reply (1)
Message 2 of 2

norman.yuan
Mentor
Mentor
Accepted solution

For RibbonToggleButton (in namespace of Autodesk.Windows from assembly AdWindows.dll), it has no property called "IsToggleThreeState", rather the property is called "IsThreeState". So are we talking the same thing?

 

If yes, there is a property called "CheckState" of bool? type, which you can set it to null so that the toggle button would neither checked, no checked (i.e. the third state), this is usually a 3-state toggle control to be initialized, and once user clicked the control, the UI does not provide a way to return the control's state back to null state.

Norman Yuan

Drive CAD With Code

EESignature