Created
April 17, 2023 13:27
-
-
Save alexandersiemert/13c10d11b3570b1747d17b611f9b001a to your computer and use it in GitHub Desktop.
ScottPlot WPF HLine/VLine Dragged EventHandler
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create Line | |
crosshairCustom = WpfPlot1.Plot.AddHorizontalLine(20,80) | |
// Register EventHandler for Dragged-event | |
crosshairCustom.Dragged += crosshairCustom_Dragged; | |
//-----------------EVENTHANDLER------------------------------------------- | |
// EventHandler for Dragged-event | |
private void crosshairCustom_Dragged(object sender, EventArgs e) | |
{ | |
/*Enter your code...will be executed when Line is dragged*/ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment