I am trying to make appear the ZoomRectangle (fixed size and following mouse) after a button click event, but I couldn't find anything at the documentation.
Any ideas?
OxyRect lens;
private void button2_Click(object sender, EventArgs e)
{
lens = new OxyRect(0, 0, tempPlot.Width / 4, tempPlot.Height / 4);
tempPlot.ShowZoomRectangle(lens);
tempPlot.MouseMove += new System.Windows.Forms.MouseEventHandler(this.plot_MouseMove);
}
private void panelTemp_MouseMove(object sender, MouseEventArgs e)
{
lens.Left = e.X;
lens.Top = e.Y;
}