hi in xamarin form i am facing this Error while clicking the button for navigating another page. can you help me on this how to fix the Error
- public partial class HomePage: ContentPage {
- public HomePage() {
- InitializeComponent();
- }
- private void NavigateButton_OnClicked(object sender, EventArgs e) {
- Navigation.PushAsync(new NavigationPage(new SectionA_Form()));
- }
- }
- "1.0" encoding="utf-8" ?>
- xmlns="http://xamarin.com/schemas/2014/forms"
- xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="WalgreensVaccine.Pages.HomePage">
-
-
"WhiteSmoke" > -
"Start" BackgroundColor="AntiqueWhite" Margin="0,10,0,0" > - FontAttributes="Italic" FontSize="Header" TextColor="Red" HorizontalOptions="Center" />
-
"CenterAndExpand" > - Clicked="NavigateButton_OnClicked" Text="Section A" BorderWidth="2" BorderColor="CadetBlue" FontSize="Medium" BackgroundColor="DarkRed" TextColor="White" HorizontalOptions="Center" WidthRequest="500" HeightRequest="50">
- public partial class SectionA_Form : ContentPage
- {
- public SectionA_Form()
- {
- InitializeComponent();
- }
- }
Amit GuptaPosted Mar 18, 2021, 7:12 PM