Hi everyone,
Is there any way to create MenuItem
like DropDown
as below images?
Thanks in advance,
-Oğuzhan
Hi everyone,
Is there any way to create MenuItem
like DropDown
as below images?
Thanks in advance,
-Oğuzhan
Hi @oguzhankoral,
If you don’t want to use a Eto.Forms.DropDown
control, you can always display some kind of static control and then popup a context menu when the user clicks on it.
– Dale
Hi @dale,
Actually I wanted to use Eto.Forms.DropDown
’s functionality as MenuItem
into code below that I signed
// OPTIONS //
MenuSegmentedItem optionsSegmentedItem = new MenuSegmentedItem()
{
Text = "Options",
Menu = new ContextMenu()
{
Items =
{
new DropDownMenuItem (But there is no object like DropDown as MenuItem)
{
//TODO:
},
new CheckMenuItem
{
Text = "Show Head-Up Display",
Checked = true,
Command = ActivateHUD,
},
},
},
};
I solved this using SubMenu
and RadioMenuItem
at least for now as you said.
-Oğuzhan
Hey @oguzhankoral,
Yes, RadioMenuItem is what you are looking for. You can add them directly in the context menu, or in a submenu via a ButtonMenuItem as you have done.