Click or drag to resize

LightningChartDPIChangedHandler Delegate

LightningChart .NET Help
Delegate for OnDPIChanged event.

Namespace: LightningChartLib.UWP.ChartingMVVM
Assembly: LightningChart.UWP.ChartingMVVM (in LightningChart.UWP.ChartingMVVM.dll) Version: 11.0.1
XMLNS for XAML: Not mapped to an xmlns.
Syntax
public delegate void DPIChangedHandler(
	LightningChart chart,
	float dpix,
	float dpiy,
	ref bool allowWindowResize
)

Parameters

chart  LightningChart
Chart where the DPI change occurred.
dpix  Single
New DPI X-value.
dpiy  Single
New DPI Y-value.
allowWindowResize  Boolean
Allow window to be resized after event handler is called.

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.

The default value is false.

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.

See Also