Hello,
I’ve added a ComponentTool to control (TextBox, ComboBox, etc). When user click with left mouse button on this i call method “show” to view a ContexMenu. But this is shown on top left corner of the browser’s window. Only alfter right click it’s showen in corret position near the control.
This is code:
var contextMenu = new Wisej.Web.ContextMenu();
// … add menu items …
control.ContextMenu = contextMenu;
var toolsContextMenu = new ComponentTool
{
ImageSource = “menu-overflow”,
Name = “toolContextMenu”
};
control.Tools.Add(toolsContextMenu);
control.ToolClick += (sender, args) => { contextMenu.Show(control, Placement.BottomRight); };
Hi,
can you send me prebuild?
What is the roadmap? I noticed a slowdown in version release compared to 2017
Thanks,
Valeriano
I can’t reproduce with the current build (not uploaded yet) – it was a bug it may have been fixed. We can send you a prebuild to verify.
I used this code:
private void textBox1_ToolClick(object sender, ToolClickEventArgs e)
{
var cx = new ContextMenu();
cx.MenuItems.Add(“Test”);
cx.Show(this.textBox1, Placement.BottomRight);
}
Please login first to submit.