Relative Content

Tag Archive for xamarin.formsmaui

Application causes freeze/slowness after using for some time

We have migrated our app into MAUI.
In Android devices or even in emulator release mode if I use the application for some time it starts getting slow and eventually freezes or crashes. It generally happens when I click on a button, and some operation happens and redirects to another screen.
I tried GC.Collect which prevents application crash but make it app slow.

ScrollView used in side Grid control in complex ui gives extra space in Android

<Grid HorizontalOptions=”Fill” RowDefinitions=”Auto, *, Auto” VerticalOptions=”Fill”> <customControls:InspectionHeaderView Title=”{Binding Path=Title}” Grid.Row=”0″ /> <ScrollView x:Name=”scrollView” Grid.Row=”1″ HorizontalOptions=”Fill” VerticalScrollBarVisibility=”Always”> <Grid RowDefinitions=”Auto, Auto, *, *”> <VerticalStackLayout x:Name=”container” Grid.Row=”0″ Padding=”20,15″> <!–Other controls–> </VerticalStackLayout> <CollectionView Grid.Row=”2″ ItemSizingStrategy=”MeasureAllItems” ItemsSource=”{Binding SelectedViolationItem.InspectionHealthViolationCodeRefs}”> <CollectionView.ItemTemplate> <DataTemplate x:DataType=”inspections:InspectionHealthViolationCodeRef”> <!–Other controls–> </DataTemplate> </CollectionView.ItemTemplate> </CollectionView> <VerticalStackLayout Grid.Row=”3″ VerticalOptions=”Start”> <!–CollectionView inside this–> </VerticalStackLayout> </Grid> </ScrollView> <Grid Grid.Row=”2″ BackgroundColor=”{StaticResource WhiteSmoke}” ColumnDefinitions=”Auto,*” […]

How to use .Net Upgrade Assistant on Visual Studio 2022 MAC

I am trying to upgrade Xamarin.Forms project to .Net MAUI using .Net Upgrade Assistant in Visual Studio 2022 MAC. I am not able to install .Net Upgrade Assistant extension into my Visual Studio 2022 MAC. I tried installing it by CLI sudo dotnet tool install -g upgrade-assistant. I am not sure whether that is correct or not.