How to disable push refresh on IOS .net maui?
Hi
I have a scroll view with horizontal orientation. Couple frames in view. In android work perfect. But on IOS if touch or push down the refresh start. How can I disable this refresh?
.NET MAUI
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,906 Reputation points • Microsoft Vendor
2024-05-31T07:45:48.2133333+00:00 Do you add RefreshView on the scrollview? Would you mind sharing some code snippets with me?
-
Баходир Кадыров 0 Reputation points
2024-05-31T08:19:55.7966667+00:00 <ContentPage x:Class="App.Views.MainPage" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:extension="clr-namespace:Aerodrome.Extensions" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" BackgroundColor="#F8F8F8" Shell.NavBarIsVisible="False"> <ContentPage.Resources> <toolkit:InvertedBoolConverter x:Key="InvertedBoolConverter" /> </ContentPage.Resources> <ContentPage.Behaviors> <toolkit:EventToCommandBehavior Command="{Binding AppearingCommand}" EventName="Appearing" /> </ContentPage.Behaviors> <RefreshView Command="{Binding RefreshCommand}" IsRefreshing="{Binding IsRefreshing, Mode=TwoWay}"> <Grid Padding="16" RowDefinitions="48,100,auto,100,auto,Auto,*" RowSpacing="16"> <Grid Grid.Row="0" Margin="16,0" ColumnDefinitions="48,*,36" ColumnSpacing="16"> <toolkit:AvatarView BackgroundColor="#A3A3A3" BorderColor="Transparent" HeightRequest="48" HorizontalOptions="Start" ImageSource="{Binding Avatar.AvatarUrl}" WidthRequest="48"> <toolkit:AvatarView.GestureRecognizers> <TapGestureRecognizer Command="{Binding GoToProfileCommand}" /> </toolkit:AvatarView.GestureRecognizers> </toolkit:AvatarView> <Label Grid.Column="1" FontAttributes="Bold" FontSize="17" Text="{extension:Translation Key=main_page_profile}" VerticalOptions="CenterAndExpand"> <Label.GestureRecognizers> <TapGestureRecognizer Command="{Binding GoToProfileCommand}" /> </Label.GestureRecognizers> </Label> <Frame Grid.Column="2" Padding="16" BackgroundColor="{StaticResource LightGray}" BorderColor="Transparent" CornerRadius="24" HasShadow="False" HeightRequest="48" IsVisible="True" VerticalOptions="CenterAndExpand" WidthRequest="48"> <Frame.GestureRecognizers> <TapGestureRecognizer Command="{Binding LogOutCommand}" /> </Frame.GestureRecognizers> <ImageButton Aspect="AspectFit" BackgroundColor="Transparent" Command="{Binding LogOutCommand}" Source="ic_logout" /> </Frame> </Grid> <Grid Grid.Row="1" ColumnDefinitions="*,*" ColumnSpacing="16" RowSpacing="16"> <Frame Grid.Column="0" Padding="16" BackgroundColor="White" BorderColor="Transparent" CornerRadius="16" HasShadow="False"> <StackLayout> <Label FontSize="{Binding FontSizeBalance}"> <Label.FormattedText> <FormattedString> <Span FontAttributes="Bold" FontFamily="DaysOneRegular" Text="{Binding Balance}" /> <Span FontAttributes="Bold" FontFamily="MontserratBold" Text=" ₽" /> </FormattedString> </Label.FormattedText> </Label> <Label FontSize="13" Text="{extension:Translation Key=main_page_balance}" TextColor="#5D5D5D" VerticalOptions="EndAndExpand" /> </StackLayout> </Frame> <Frame Grid.Column="1" Padding="16" BackgroundColor="White" BorderColor="Transparent" CornerRadius="16" HasShadow="False"> <StackLayout> <Label FontAttributes="Bold" FontSize="26" Text="{Binding Amount}" /> <Label FontSize="13" Text="{extension:Translation Key=main_page_amount_of_left}" TextColor="#5D5D5D" VerticalOptions="EndAndExpand" /> </StackLayout> </Frame> </Grid> <Label Grid.Row="2" Margin="16,0" FontAttributes="Bold" FontSize="24" Text="{Binding Date}" /> <ScrollView Grid.Row="3" Orientation="Horizontal"> <Grid ColumnDefinitions="*,*,*,*" ColumnSpacing="10"> <Frame Grid.Column="0" Padding="16" BackgroundColor="White" BorderColor="Transparent"> <Grid ColumnDefinitions="auto, *" ColumnSpacing="10"> <Image Grid.Column="0" Source="ic_mainpage_sky" /> <Label Grid.Column="1" FontAttributes="Bold" FontSize="11" MaximumWidthRequest="62" Text="{extension:Translation Key=main_page_about_aerodrome}" VerticalOptions="Center" /> </Grid> <Frame.GestureRecognizers> <TapGestureRecognizer Command="{Binding GoToAboutPageCommand}" /> </Frame.GestureRecognizers> </Frame> <Frame Grid.Column="1" Padding="16" BackgroundColor="White" BorderColor="Transparent"> <Grid ColumnDefinitions="auto, *" ColumnSpacing="10"> <Image Grid.Column="0" Source="ic_mainpage_teams" /> <Label Grid.Column="1" FontAttributes="Bold" FontSize="11" MaximumWidthRequest="60" Text="{extension:Translation Key=main_page_groups}" VerticalOptions="Center" /> </Grid> <Frame.GestureRecognizers> <TapGestureRecognizer Command="{Binding GoToTeamsPageCommand}" /> </Frame.GestureRecognizers> </Frame> <Frame Grid.Column="2" Padding="16" BackgroundColor="White" BorderColor="Transparent"> <Grid ColumnDefinitions="auto, *" ColumnSpacing="10"> <Image Grid.Column="0" Source="ic_mainpage_call" /> <Label Grid.Column="1" FontAttributes="Bold" FontSize="11" MaximumWidthRequest="75" Text="{extension:Translation Key=main_page_emergency_call}" VerticalOptions="Center" /> </Grid> <Frame.GestureRecognizers> <TapGestureRecognizer Command="{Binding EmergencyCallCommand}" /> </Frame.GestureRecognizers> </Frame> <Frame Grid.Column="3" Padding="16" BackgroundColor="White" BorderColor="Transparent"> <Grid ColumnDefinitions="auto, *" ColumnSpacing="10"> <Image Grid.Column="0" Source="ic_mainpage_notify" /> <Label Grid.Column="1" FontAttributes="Bold" FontSize="11" MaximumWidthRequest="85" Text="{extension:Translation Key=main_page_notifications}" VerticalOptions="Center" /> </Grid> <Frame.GestureRecognizers> <TapGestureRecognizer Command="{Binding GoToNotificationsPageCommand}" /> </Frame.GestureRecognizers> </Frame> </Grid> </ScrollView> </Grid> </RefreshView> </ContentPage>
-
Баходир Кадыров 0 Reputation points
2024-05-31T11:03:41.7933333+00:00 if wrap scroll view with refresh view and set isEnabled = false, the scroll view not scroll(((
-
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,906 Reputation points • Microsoft Vendor
2024-06-03T09:50:41.86+00:00 I tested with the code snippets you provided, there is only one progress-loading view. Did you miss some other code snippets? Which iOS device do you test on? And what's the detailed MAUI version?
-
Баходир Кадыров 0 Reputation points
2024-06-19T06:24:44.9466667+00:00 Thanks for your answer,
MAUI version
Installed Workload Id Manifest Version Installation Source
maui-ios 8.0.7/8.0.100 SDK 8.0.200
maui-android 8.0.7/8.0.100 SDK 8.0.200
maccatalyst 17.2.8053/8.0.100 SDK 8.0.200
for testing i use the iphone 15 pro ios 17.2
how can i disable a vertical scroll and disable loader?
Sign in to comment