Table of Contents

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

chart LightningChart

Chart where the DPI change occurred.

dpix float

New DPI X-value.

dpiy float

New DPI Y-value.

allowWindowResize bool

Allow 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

object object
method IntPtr

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

chart LightningChart
dpix float
dpiy float
allowWindowResize bool
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(ref bool, IAsyncResult)

public virtual void EndInvoke(ref bool allowWindowResize, IAsyncResult result)

Parameters

allowWindowResize bool
result IAsyncResult

Invoke(LightningChart, float, float, ref bool)

public virtual void Invoke(LightningChart chart, float dpix, float dpiy, ref bool allowWindowResize)

Parameters

chart LightningChart
dpix float
dpiy float
allowWindowResize bool