How can I modify panning behavior to require pressing the F1 key? #1336
Unanswered
ts-research7
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I aim to modify the graph panning behavior such that users can pan by holding down the F1 key combined with a click-and-drag action, rather than just through a click-and-drag action. Below is my current implementation:
XAML:
<lvc:CartesianChart
x:Name="cartesianChart"
Focusable="True"
Series="{Binding Series}"
KeyDown="CartesianChart_KeyDown"
KeyUp="CartesianChart_KeyUp"/>
Code-behind:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
cartesianChart.Focus();
cartesianChart.ZoomMode = ZoomAndPanMode.ZoomX | ZoomAndPanMode.ZoomY;
}
}
Is there a more efficient or streamlined way to achieve this desired behavior?
Beta Was this translation helpful? Give feedback.
All reactions