Hi,
I made a custom modifier and tried to capture a keydown event in Custom Modifiers in abstract “Overriding Key Events” described. The problem is that this event is only fired when SciChartSurface is on focus but for standard modifier like MouseWheelModifier it is working properly. Is there any way to capture the event for whole application?
- Marcus Krauße asked 1 year ago
- You must login to post comments
Hi Marcus,
Discussing this with the team today. I think the best way would be to set focus on mouseover. Can you try something like this?
<Style TargetType="{x:Type s:SciChartSurface}">
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="FocusManager.FocusedElement" Value="{Binding RelativeSource={RelativeSource Self}}"></Setter>
</Trigger>
</Style.Triggers>
</Style>
Or, if that doesn’t work, another programmatic way to set focus on MouseEnter. This will steal focus from whatever else in your app has it. Like textboxes or buttons or forms.
Best regards
Andrew
- Andrew Burnett-Thompson answered 1 year ago
- You must login to post comments
Please login first to submit.