Valeriano Simeone asked 2018-03-31 17:08:36 UTC
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); };
Valeriano Simeone asked 2018-03-31 17:08:36 UTC
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); };