Is the split button supposed to work like this?

Ribbon for WPF Forum

Posted 12 years ago by SledgeHammer01
Version: 11.1.0545
Avatar
Right now, we have a split button thats organized like this:

CmdA
----
\/
CmdA
CmdB

if CmdA is disabled, but CmdB is enabled, there is no way to execute CmdB because the entire button is disabled. Shouldn't the drop down portion of the button be enabled if there are active commands under it?

Comments (4)

Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Check out the SplitButton documentation topic and in that, the "Disabling When Child Items Are All Disabled" section. That may help. If that doesn't get you going, I believe you can also set the SplitButton.PopupCommand to a command whose CanExecute will be used to determine if the popup should show or not.


Actipro Software Support

Posted 12 years ago by Thilo Steinert
Avatar

If SplitButton.Command.CanExecute returns false, button and DropDown-arrow are disabled. Even setting a PopupCommand with CanExecute returning true does not help. Both CanExecute methods must return true to enable the drop down portion, but that is not what we (and SledgeHammer01) want : CmdA disabled, CmdB enabled AND drop down portion enabled. Please help...

Answer - Posted 12 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Thilo,

Sorry it is not possible in the current version but we've been working on updates for the 2012.2 version that will support this as long as you have a PopupCommand set.


Actipro Software Support

Posted 12 years ago by Thilo Steinert
Avatar

Thank you. We are waiting for this fix because our application needs this functionality.

The latest build of this product (v24.1.2) was released 2 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.