In some scenarios you need to have a button that displays additional options upon clicking. This tutorial will show you how to achieve such drop-down button behavior using only a
ToggleButton
and a
RadContextMenu
. The two things you have to do are the following:
Attach a
RadContextMenu
to the
ToggleButton
Bind the
IsChecked
property of the
ToggleButton
to the
IsOpen
property of the
RadContextMenu
The things you have to make attention to here are: how the
RadContextMenu
is attached to the
ToggleButton
and the
ElementBinding
applied to the
ToggleButton's
IsChecked
property.
Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See
Trademarks
for appropriate markings.