ScrollPresenter.ContentOrientation Property

Definition

Gets or sets a value that indicates whether the content prefers to scroll horizontally or vertically.

public:
 property ScrollingContentOrientation ContentOrientation { ScrollingContentOrientation get(); void set(ScrollingContentOrientation value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")]
ScrollingContentOrientation ContentOrientation();

void ContentOrientation(ScrollingContentOrientation value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")]
ScrollingContentOrientation ContentOrientation();

void ContentOrientation(ScrollingContentOrientation value);
public ScrollingContentOrientation ContentOrientation { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")]
public ScrollingContentOrientation ContentOrientation { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ScrollPresenter::s_defaultContentOrientation")] set; }
var scrollingContentOrientation = scrollPresenter.contentOrientation;
scrollPresenter.contentOrientation = scrollingContentOrientation;
Public Property ContentOrientation As ScrollingContentOrientation

Property Value

The preferred scroll direction of the content. The default is Vertical.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Applies to