2015-09-03 45 views
0

我是新來的,我需要加載消息我怎麼能顯示加載消息Xamarin.Forms請幫我如何顯示在Xamarin.Forms正在加載消息

代碼: -

<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> 

thanx提前

乾杯

回答

3

套裝IsVisible="True"的內容查看會告訴你ActivityIndi​​cator。

<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> 
相關問題