Compartir a través de


EnableAutoZoom (Silverlight Plug-in Object)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets or sets a value that indicates whether the host (for certain platforms) can invoke zoom behavior that increases the DPI.

Syntax

object Element

<object ...>
  <param name="enableautozoom" value="bool"/>
  ...
</object>

Silverlight.js

Not available

JavaScript

bool = silverlightObject.settings.EnableAutoZoom;

COM

Not available

Managed Code

Property Value

true if the host is permitted to invoke zoom behavior on load that can increase the DPI; otherwise, false. The default value is true.

Remarks

This property is only relevant if the platform supports auto-zooming to DPI. For example, Internet Explorer 8 running on Windows 7 supports auto-zooming.

This property can only be set during Silverlight plug-in initialization, and is read-only at run time for all possible access models.

Regardless of auto-zoom behavior, a user can still initiate zoom, which you can detect and process by handling the Zoomed event. See OnZoom (Silverlight Plug-in Object).