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
- <ContentView.Content>
- <Label
-
- public class FramedTextPage : ContentPage
- {
- public FramedTextPage()
- {
- Padding = new Thickness(20);
- Content = new Frame
- {
- OutlineColor = Color.Accent,
- HorizontalOptions = LayoutOptions.Center,
- VerticalOptions = LayoutOptions.Center,
- Content = new Label
- {
- Text = "I've been framed!",
- FontSize = Device.GetNamedSize(NamedSize.Large, typeof(Label))
- }
- };
- }
- }
- ></Label>
- </ContentView.Content>