ScrollViewer.ZoomMode Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether zoom behavior in the ScrollViewer content is enabled.
public:
property ZoomMode ZoomMode { ZoomMode get(); void set(ZoomMode value); };
ZoomMode ZoomMode();
void ZoomMode(ZoomMode value);
public ZoomMode ZoomMode { get; set; }
var zoomMode = scrollViewer.zoomMode;
scrollViewer.zoomMode = zoomMode;
Public Property ZoomMode As ZoomMode
<ScrollViewer ZoomMode="zoomModeMemberName" />
-or-
<object ScrollViewer.ZoomMode="zoomModeMemberName"/>
A value of the enumeration.
No default value is listed for this property. Controls that incorporate a ScrollViewer in compositing often set a value for ZoomMode in the default template and starting visual states, and it is this templated value that you will typically start with. Controls with a ScrollViewer as part of their composition typically use template binding such that setting the attached property at the level of the control will change the scroll behavior of the ScrollViewer part within the control. Otherwise, it may be necessary to replace the template in order to change the scroll behavior of a ScrollViewer part.
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |