ScrollView.HorizontalAnchorRatio Property

Definition

Gets or sets the ratio within the viewport where the anchor element is selected.

public:
 property double HorizontalAnchorRatio { double get(); void set(double value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
double HorizontalAnchorRatio();

void HorizontalAnchorRatio(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
double HorizontalAnchorRatio();

void HorizontalAnchorRatio(double value);
public double HorizontalAnchorRatio { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
public double HorizontalAnchorRatio { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollView::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] set; }
var double = scrollView.horizontalAnchorRatio;
scrollView.horizontalAnchorRatio = double;
Public Property HorizontalAnchorRatio As Double

Property Value

Double

double

The ratio within the viewport where the anchor element is selected. The default is 0.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallbackAttribute

Applies to