2
Answers

Xaml page code correct but not viewed

Ask a question
Am creating Xaml application code are correct but run on Android  device but only viewed on blank page
how to solve this??????
  1. <StackLayout HorizontalOptions="FillAndExpand">  
  2.     <StackLayout.BackgroundColor>  
  3.         <OnPlatform x:TypeArguments="Color"  
  4.                      Android="#51COD4"  
  5.                      iOS="51COD4"  
  6.                      WinPhone="51COD4"></OnPlatform>  
  7.     </StackLayout.BackgroundColor>  
  8.     <ContentPage.BackgroundColor>   
  9.         <Label Text="Welcome to Xamarin Forms!"   
  10.        VerticalOptions="Center"   
  11.        HorizontalOptions="Center" />  
  12. <Slider VerticalOptions="FillAndExpand"></Slider>  
  13.     </ContentPage.BackgroundColor>  
  14.   
  15. </StackLayout>  
 
 

Answers (2)