Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
This .NET Multi-platform App UI (.NET MAUI) iOS platform-specific controls whether row animations are disabled when the ListView items collection is being updated. It's consumed in XAML by setting the ListView.RowAnimationsEnabled
bindable property to false
:
<ContentPage ...
xmlns:ios="clr-namespace:Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;assembly=Microsoft.Maui.Controls">
<StackLayout>
<ListView ... ios:ListView.RowAnimationsEnabled="false">
...
</ListView>
</StackLayout>
</ContentPage>
Alternatively, it can be consumed from C# using the fluent API:
using Microsoft.Maui.Controls.PlatformConfiguration;
using Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific;
...
listView.On<iOS>().SetRowAnimationsEnabled(false);
The ListView.On<iOS>
method specifies that this platform-specific will only run on iOS. The ListView.SetRowAnimationsEnabled
method, in the Microsoft.Maui.Controls.PlatformConfiguration.iOSSpecific
namespace, is used to control whether row animations are disabled when the ListView items collection is being updated. In addition, the ListView.GetRowAnimationsEnabled
method can be used to return whether row animations are disabled on the ListView.