after trying to implement something for a long time and failing to do so, unfortunately I have to ask for help.
I hope somone can help me.
My goal is to create a script to move the chart from the program.
Since I did not find anything in the documentation, I would like to use C# Event, the
Left and right arrow triggers.
protected override void OnStateChange() { if (State == State.DataLoaded) { this.ChartPanel.KeyDown += new System.Windows.Input.KeyEventHandler(OnKeyDown); } else if (State == State.Terminated) { this.ChartPanel.KeyDown -= OnKeyDown; } } public void OnKeyDown(object sender, System.Windows.Input.KeyEventArgs e) { // detect Key (23 Left) and (25 Right)? Print("Down"); }
Unfortunately, after 8 hours of programming, I am not getting anywhere.
Can someone help me and tell me:
A, how to intercept the keyboard event?
B. That can act as a trigger?
Comment