ScrollPresenter.HorizontalAnchorRatio Property
Definition
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 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