Xaml 如何在Xamarin.Forms中显示加载消息

Xaml 如何在Xamarin.Forms中显示加载消息,xaml,xamarin.forms,Xaml,Xamarin.forms,我是Xamarin的新手。我需要加载消息的表单如何显示加载消息请帮助我 代码:- <AbsoluteLayout> <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" AbsoluteLayout.LayoutBounds="0, 0, 1, 1" AbsoluteLayout.LayoutFlags="All" Padding="30" > <Gr

我是Xamarin的新手。我需要加载消息的表单如何显示加载消息请帮助我

代码:-

<AbsoluteLayout>
  <StackLayout HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" AbsoluteLayout.LayoutBounds="0, 0, 1, 1"
  AbsoluteLayout.LayoutFlags="All" Padding="30" >
  <Grid>
   //something
  </Grid>
  </StackLayout>
  <ContentView x:Name="overlay" AbsoluteLayout.LayoutBounds="0, 0, 1, 1"  AbsoluteLayout.LayoutFlags="All" IsVisible="False" BackgroundColor="#C0808080" Padding="10, 0">
    <ActivityIndicator  WidthRequest="110" HeightRequest="70" IsRunning="True" IsVisible="True" Color="Black" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
  </ContentView>
</AbsoluteLayout>

//某物
先发制人

为ContentView设置的欢呼声将显示ActivityIndicator

<ContentView x:Name="overlay" AbsoluteLayout.LayoutBounds="0, 0, 1, 1"  AbsoluteLayout.LayoutFlags="All" IsVisible="True" BackgroundColor="#C0808080" Padding="10, 0">
    <ActivityIndicator  WidthRequest="110" HeightRequest="70" IsRunning="True" IsVisible="True" Color="Black" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
  </ContentView>

Set
IsVisible=“True”
for ContentView将向您显示ActivityIndicator

<ContentView x:Name="overlay" AbsoluteLayout.LayoutBounds="0, 0, 1, 1"  AbsoluteLayout.LayoutFlags="All" IsVisible="True" BackgroundColor="#C0808080" Padding="10, 0">
    <ActivityIndicator  WidthRequest="110" HeightRequest="70" IsRunning="True" IsVisible="True" Color="Black" HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"/>
  </ContentView>

如果您使用的是MVVM,并且需要完整的模式加载消息,请查看。您可以通过安装。您可以找到示例应用程序

如果您使用的是MVVM,并且需要完整的模式加载消息,请查看。您可以通过安装。您可以找到示例应用程序