다음을 통해 공유


CoreWebView2Controller.ShouldDetectMonitorScaleChanges Property

Definition

Determines whether the WebView will detect monitor scale changes.

public bool ShouldDetectMonitorScaleChanges { get; set; }
public int ShouldDetectMonitorScaleChanges { get; set; }
member this.ShouldDetectMonitorScaleChanges : bool with get, set
member this.ShouldDetectMonitorScaleChanges : int with get, set
Public Property ShouldDetectMonitorScaleChanges As Boolean
Public Property ShouldDetectMonitorScaleChanges As Integer

Property Value

Remarks

ShouldDetectMonitorScaleChanges property determines whether the WebView attempts to track monitor DPI scale changes. When true, the WebView will track monitor DPI scale changes, update the RasterizationScale property, and fire RasterizationScaleChanged event. When false, the WebView will not track monitor DPI scale changes, and the app must update the RasterizationScale property itself. RasterizationScaleChanged event will never raise when ShouldDetectMonitorScaleChanges is false. Apps that want to set their own rasterization scale should set this property to false to avoid the WebView2 updating the RasterizationScale property to match the monitor DPI scale.

Applies to