Language
Edit

SizerBase.OnDragHorizontal(Double) Method

Definition

Method to process the requested horizontal resize.

protected abstract bool OnDragHorizontal(double horizontalChange);
abstract member OnDragHorizontal : double -> bool
Protected MustOverride Function OnDragHorizontal (horizontalChange As Double) As Boolean

Parameters

horizontalChange
Double

The Microsoft.UI.Xaml.Input.ManipulationDeltaRoutedEventArgs.Cumulative horizontal change amount from the start in device-independent pixels DIP.

Returns

Boolean indicates if a change was made

Remarks

The value provided here is the cumulative change from the beginning of the manipulation. This method will be used regardless of input device. It will already be adjusted for RightToLeft Microsoft.UI.Xaml.FlowDirection of the containing layout/settings. It will also already account for any settings such as DragIncrement or KeyboardIncrement. The implementer just needs to use the provided value to manipulate their baseline stored in OnDragStarting() to provide the desired change.

Applies to