Hello,
I have integrated Syncfusion in VS 2022 and VS2022 Preview, both satisfying software requirements.
My app compliles but not a single control works.
in this XAML code:
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="KnifeMaui.Views.LoadingPage"
xmlns:core="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
Title="{Binding Title}">
<ContentPage.Content>
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<ActivityIndicator Color="Orange" IsRunning="True" HeightRequest="50" WidthRequest="50"
IsVisible="{Binding Checking}" />
<core:SfBusyIndicator x:Name="bi" IndicatorColor="White" IsRunning = "True"
AnimationType="LinearMaterial"/>
</VerticalStackLayout>
</ContentPage.Content>
</ContentPage>
only the Activity Indicator is shown. SfBusyIndicator is not.
Hi Fabrizio,
Query: SfBusyIndicator is not showing in .NET MAUI
To resolve your issue " SfBusyIndicator is not showing in .NET MAUI", kindly use HeightRequest and WidthRequest in the control to display the content on the page. Here is code snippet.
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<ActivityIndicator Color="Orange" IsRunning="True" HeightRequest="50" WidthRequest="50" IsVisible="{Binding Checking}" />
<core:SfBusyIndicator x:Name="bi" IndicatorColor="Blue" HeightRequest="50" WidthRequest="50" IsRunning = "True" AnimationType="LinearMaterial"/>
</VerticalStackLayout> |
We have attached sample for your reference. Kindly refer the sample and please let us know if you need any other details.
Regards,
Shivani
But, the title is not displayed.
Modify the MainPage file as below.
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:core="clr-namespace:Syncfusion.Maui.Core;assembly=Syncfusion.Maui.Core"
x:Class="SampleBusyIndicator.MainPage">
<ContentPage.Content>
<ScrollView>
<StackLayout>
<ActivityIndicator Color="Orange" IsRunning="True" HeightRequest="50" WidthRequest="50" IsVisible="{Binding Checking}" />
<core:SfBusyIndicator x:Name="bi" IndicatorColor="Blue" HeightRequest="50" WidthRequest="50" IsRunning = "True" AnimationType="Cupertino" Title="Loading..."/>
</StackLayout>
</ScrollView>
</ContentPage.Content>
</ContentPage>
Hi Fabrizio,
We suggest you to increase the HeightRequest of the SfBusyIndicator control to overcome the reported issue "The title is not displayed." as demonstrated in the provided code snippet. We have modified the sample based on this and attached the sample for your reference. Please check the attached sample and let us know if you need any other details.
Please refer the below code snippet for this
<ContentPage.Content> <ScrollView> <StackLayout> <ActivityIndicator Color="Orange" IsRunning="True" HeightRequest="50" WidthRequest="50" IsVisible="{Binding Checking}" />
<core:SfBusyIndicator x:Name="bi" IndicatorColor="Blue" WidthRequest="100" HeightRequest="110" IsRunning = "True" AnimationType="Cupertino" Title="Loading..."/> </StackLayout> </ScrollView> </ContentPage.Content> |
Regards,
Brundha V