Delegate LightningChart.DPIChangedHandler
- Namespace
- LightningChartLib.WinForms.Charting
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Delegate for OnDPIChanged event.
public delegate void LightningChart.DPIChangedHandler(LightningChart chart, float dpix, float dpiy, ref bool allowWindowResize)
Parameters
chartLightningChartChart where the DPI change occurred.
dpixfloatNew DPI X-value.
dpiyfloatNew DPI Y-value.
allowWindowResizeboolAllow window to be resized after event handler is called.
<p>You should set this to true, if you choose not to react the WM_DPICHANGED event on application side. If set to true, LightningChart will mark the event as handled, and touch window size / position.</p><p>The default value is false. </p>
Remarks
Microsoft instructs on https://docs.microsoft.com/en-us/windows/desktop/hidpi/wm-dpichanged that all PerMonitor DPI aware applications should listen for WM_DPICHANGED events, and reposition / resize the application window as instructed on the page.
LightningChart does not do this operation by default. This system can be enabled by setting the allowWindowResize parameter to true.
Constructors
DPIChangedHandler(object, IntPtr)
public DPIChangedHandler(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(LightningChart, float, float, ref bool, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(LightningChart chart, float dpix, float dpiy, ref bool allowWindowResize, AsyncCallback callback, object @object)
Parameters
chartLightningChartdpixfloatdpiyfloatallowWindowResizeboolcallbackAsyncCallbackobjectobject
Returns
EndInvoke(ref bool, IAsyncResult)
public virtual void EndInvoke(ref bool allowWindowResize, IAsyncResult result)
Parameters
allowWindowResizeboolresultIAsyncResult
Invoke(LightningChart, float, float, ref bool)
public virtual void Invoke(LightningChart chart, float dpix, float dpiy, ref bool allowWindowResize)
Parameters
chartLightningChartdpixfloatdpiyfloatallowWindowResizebool