[]
        
(Showing Draft Content)

C1.WinUI.Core.C1ZoomHelper.-ctor

C1ZoomHelper Constructor

C1ZoomHelper(FrameworkElement, bool, bool, bool)

Initializes a new C1ZoomHelper.

Declaration
public C1ZoomHelper(FrameworkElement element, bool ctrlRequired = true, bool continuousZoom = true, bool handleMouseWheel = true)
Parameters
Type Name Description
FrameworkElement element

An Microsoft.UI.Xaml.FrameworkElement on which the zoom gesture will be listened.

bool ctrlRequired

Sets whether is required to press Ctrl key in order to start the gesture.

bool continuousZoom

If set to true it will raise intermediate events to perform a continuous zoom, otherwise the events will be raised from native mouse wheel events.

bool handleMouseWheel

Sets whether Handled property of mouse wheel events will be set to true.