Skip to content

Commit 874f739

Browse files
authored
Update RasterizationScale.md
1 parent b235252 commit 874f739

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

specs/RasterizationScale.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ interface ICoreWebView2RasterizationScaleChangedEventHandler : IUnknown {
133133
```c#
134134
namespace Microsoft.Web.WebView2.Core
135135
{
136-
public partial class CoreWebView2Controller
136+
unsealed runtimeclass CoreWebView2Controller
137137
{
138138
/// <summary>
139139
/// Gets or sets the WebView rasterization scale.
@@ -142,15 +142,15 @@ public partial class CoreWebView2Controller
142142
/// The rasterization scale is the combination of the monitor DPI scale and text scaling set by the user. This value should be updated when the DPI scale of the app's top level window changes (i.e. monitor DPI scale changes or the window changes monitor) or when the text scale factor of the system changes.
143143
/// Rasterization scale applies to the WebView content, as well as popups, context menus, scroll bars, and so on. Normal app scaling scenarios should use the <see cref="CoreWebView2.ZoomFactor"/> property or <see cref="CoreWebView2.SetBoundsAndZoomFactor"/> method.
144144
/// </remarks>
145-
public double RasterizationScale { get; set;};
145+
Double RasterizationScale { get; set; };
146146

147147
/// <summary>
148148
/// Determines whether the WebView will detect monitor scale changes.
149149
/// </summary>
150150
/// <remarks>
151151
/// ShouldDetectMonitorScaleChanges property determines whether the WebView attempts to track monitor DPI scale schanges. When true, the WebView will track monitor DPI scale changes, update the <see cref="CoreWebView2.RasterizationScale"/> property, and raise <see cref="CoreWebView2.RasterizationScaleChanged"/> event. When false, the WebView will not track monitor DPI scale changes, and the app must update the <see cref="CoreWebView2.RasterizationScale"/> property itself. <see cref="CoreWebView2.RasterizationScaleChanged"/> event will never be raised when ShouldDetectMonitorScaleChanges is false.
152152
/// </remarks>
153-
public bool ShouldDetectMonitorScaleChanges {get; set;};
153+
Boolean ShouldDetectMonitorScaleChanges { get; set; };
154154

155155
/// <summary>
156156
/// RasterizationScalechanged is raised when the <see cref="CoreWebView2Controller.RasterizationScale"/> property changes.
@@ -159,6 +159,6 @@ public partial class CoreWebView2Controller
159159
/// The event is raised when the Webview detects that the monitor DPI scale has changed, <see cref="CoreWebView2Controller.ShouldDetectMonitorScaleChanges"/> is true, and the Webview has changed the <see cref="CoreWebView2Controller.RasterizationScale"/> property.
160160
/// </remarks>
161161
/// <seealso cref="CoreWebView2Controller.RasterizationScale"/>
162-
public event EventHandler<object> RasterizationScaleChanged;
162+
event Windows.Foundation.TypedEventHandler<CoreWebView2Controller, Object> RasterizationScaleChanged;
163163
}
164164
```

0 commit comments

Comments
 (0)