Share via


ScrollPresenter.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="ScrollPresenter::s_defaultAnchorRatio")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
double HorizontalAnchorRatio();

void HorizontalAnchorRatio(double value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")]
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::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="ScrollPresenter::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")]
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")]
public double HorizontalAnchorRatio { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultAnchorRatio")] [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyValidationCallback(value="ValidateAnchorRatio")] set; }
var double = scrollPresenter.horizontalAnchorRatio;
scrollPresenter.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