View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002436 | NoesisGUI | C++ SDK | public | 2022-10-04 01:21 | 2022-11-18 10:09 |
| Reporter | tsilmer | Assigned To | sfernandez | ||
| Priority | normal | Severity | major | ||
| Status | resolved | Resolution | no change required | ||
| Product Version | 3.1.5 | ||||
| Target Version | 3.1.6 | Fixed in Version | 3.1.6 | ||
| Summary | 0002436: GamepadTrigger does not work inside ContextMenu | ||||
| Description | Any kind of Interaction.Triggers such as KeyTrigger, EventTrigger, etc work as expected when used inside a ContextMenu. But when a GamepadTrigger is used it does not trigger the actions. | ||||
| Steps To Reproduce | In the following example, the action under KeyTrigger works as expected, while the GamepadTrigger is never executed (the same GamepadTrigger outside of the ContextMenu also works just fine): <DataTemplate x:Key="TreeViewComponentStyle">
</Border> | ||||
| Platform | Any | ||||
|
By default (ActiveOnFocus="False") KeyTrigger and GamepadTrigger hook to the XAML root to listen for the KeyDown/Up event. If you use another gamepad button (for example the "Menu" button) that is not handled by elements in the tree, then the GamepadTrigger works as expected. But what you should do is to set ActiveOnFocus="True" so the GamepadTrigger is processed on the ContextMenu where you are defining it. That way the trigger can be processed and execute its actions before other elements in the tree. <ContextMenu Name="MyContextMenu"> |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2022-10-04 01:21 | tsilmer | New Issue | |
| 2022-10-06 17:53 | sfernandez | Assigned To | => sfernandez |
| 2022-10-06 17:53 | sfernandez | Status | new => assigned |
| 2022-10-06 17:53 | sfernandez | Target Version | => 3.1.6 |
| 2022-10-06 19:35 | sfernandez | Status | assigned => feedback |
| 2022-10-06 19:35 | sfernandez | Note Added: 0008089 | |
| 2022-11-07 17:13 | sfernandez | Target Version | 3.1.6 => 3.1.7 |
| 2022-11-07 17:17 | sfernandez | Target Version | 3.1.7 => 3.1.6 |
| 2022-11-18 10:09 | sfernandez | Status | feedback => resolved |
| 2022-11-18 10:09 | sfernandez | Resolution | open => no change required |
| 2022-11-18 10:09 | sfernandez | Fixed in Version | => 3.1.6 |