Custom Context Menu Builder
Core API Hook: WPF ContextMenu Custom Render Engine
Render custom popup context menus populated with sub-action keys directly at the active mouse cursor position.
Configuration Parameters
| Parameter | Type | Description |
|---|---|---|
| Target | string | Reference identifier list of sub-actions to inject as menu choices. |
config.json Mapping
{
"Type": "CallMenu",
"Name": "Open Quick Actions Menu",
"Target": "action_id_1, action_id_2, action_id_3"
}
Save inside database layout actions configuration map.
Native Execution Hook
// CallMenu execution logic
Application.Current.Dispatcher.Invoke(() =>
{
var menu = new CustomWpfContextMenu();
foreach (var subId in action.SubActionList)
{
var item = new MenuItem { Header = subId.Name };
item.Click += (s, e) => InputManager.Instance.ExecuteActionSync(subId);
menu.Items.Add(item);
}
// Set position to active cursor coordinates
menu.IsOpen = true;
});
Executed within IsoCore remapping runtime loop.
← Back to Actions Directory
IsoKey Module: CallMenu