Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexandersiemert/13c10d11b3570b1747d17b611f9b001a to your computer and use it in GitHub Desktop.
Save alexandersiemert/13c10d11b3570b1747d17b611f9b001a to your computer and use it in GitHub Desktop.
ScottPlot WPF HLine/VLine Dragged EventHandler
// 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