ScrollView.ScrollToAsync Method
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.
Overloads
ScrollToAsync(Double, Double, Boolean) |
Returns a task that scrolls the scroll view to a position asynchronously. |
ScrollToAsync(Element, ScrollToPosition, Boolean) |
Returns a task that scrolls the scroll view to an element asynchronously. |
ScrollToAsync(Double, Double, Boolean)
Returns a task that scrolls the scroll view to a position asynchronously.
public:
System::Threading::Tasks::Task ^ ScrollToAsync(double x, double y, bool animated);
public System.Threading.Tasks.Task ScrollToAsync (double x, double y, bool animated);
member this.ScrollToAsync : double * double * bool -> System.Threading.Tasks.Task
Public Function ScrollToAsync (x As Double, y As Double, animated As Boolean) As Task
Parameters
- x
- Double
The X position of the finished scroll.
- y
- Double
The Y position of the finished scroll.
- animated
- Boolean
Whether or not to animate the scroll.
Returns
Applies to
ScrollToAsync(Element, ScrollToPosition, Boolean)
Returns a task that scrolls the scroll view to an element asynchronously.
public:
System::Threading::Tasks::Task ^ ScrollToAsync(Microsoft::Maui::Controls::Element ^ element, Microsoft::Maui::Controls::ScrollToPosition position, bool animated);
public System.Threading.Tasks.Task ScrollToAsync (Microsoft.Maui.Controls.Element element, Microsoft.Maui.Controls.ScrollToPosition position, bool animated);
member this.ScrollToAsync : Microsoft.Maui.Controls.Element * Microsoft.Maui.Controls.ScrollToPosition * bool -> System.Threading.Tasks.Task
Public Function ScrollToAsync (element As Element, position As ScrollToPosition, animated As Boolean) As Task
Parameters
- element
- Element
The element to scroll.
- position
- ScrollToPosition
The scroll position.
- animated
- Boolean
Whether or not to animate the scroll.
Returns
Applies to
.NET MAUI
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기