void OnPageChanged(object sender, PageChangedEventArgs e) { SetResampler(); Render.Invoke(viewPort.ScaledRect, viewPort.Scale); if (e.NullPage) { InvokePaint(this, null); } }
public void OnPageChanged(object sender, PageChangedEventArgs e) { if (e.NullPage) { Disable(); } else { Enable(); PageNumber = e.PageNumber; } }
public void OnPageChanged(object sender, PageChangedEventArgs e) { if (e.NullPage) { fullSize = new Size(0, 0); zoomToFit = true; } else { fullSize = e.Size; } UpdateBounds(); MoveDelta(0, 0); }