1
Answer

Xamarin forms layout class error will be how to solve this??

Ask a question
Creating an Layout project, the class error will be there how to solve this
code image given below 
the public  class framedtextpage class is error
how can i solve this 
 
  1. <ContentView.Content>  
  2.         <Label  
  3.   
  4.         public class FramedTextPage : ContentPage   
  5.         {  
  6.         public FramedTextPage()       
  7.         {  
  8.         Padding = new Thickness(20);         
  9.         Content = new Frame       
  10.         {  
  11.         OutlineColor = Color.Accent,    
  12.         HorizontalOptions = LayoutOptions.Center,  
  13.         VerticalOptions = LayoutOptions.Center,  
  14.         Content = new Label      
  15.         {      
  16.         Text = "I've been framed!",   
  17.         FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label))             
  18.         }     
  19.         };   
  20.         }  
  21.         }   
  22.            ></Label>  
  23.     </ContentView.Content>  
 

Answers (1)