TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Muthu vj
1.2k
163
9.5k
'Pushasync is not supported globally on windows, please use a navigati
Mar 18 2021 11:17 AM
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()));
}
}
<?xml version=
"1.0"
encoding=
"utf-8"
?>
<ContentPage
xmlns=
"http://xamarin.com/schemas/2014/forms"
xmlns:x=
"http://schemas.microsoft.com/winfx/2009/xaml"
x:Class=
"WalgreensVaccine.Pages.HomePage"
>
<ContentPage.Content>
<StackLayout BackgroundColor=
"WhiteSmoke"
>
<!-- Header-->
<StackLayout VerticalOptions=
"Start"
BackgroundColor=
"AntiqueWhite"
Margin=
"0,10,0,0"
>
<Label Text=
"Walgreens Covid Form"
FontAttributes=
"Italic"
FontSize=
"Header"
TextColor=
"Red"
HorizontalOptions=
"Center"
/>
</StackLayout>
<!-- Content -->
<StackLayout VerticalOptions=
"CenterAndExpand"
>
<Button x:Name=
"sectionA"
Clicked=
"NavigateButton_OnClicked"
Text=
"Section A"
BorderWidth=
"2"
BorderColor=
"CadetBlue"
FontSize=
"Medium"
BackgroundColor=
"DarkRed"
TextColor=
"White"
HorizontalOptions=
"Center"
WidthRequest=
"500"
HeightRequest=
"50"
></Button>
</StackLayout>
</StackLayout>
</ContentPage.Content>
</ContentPage>
public
partial
class
SectionA_Form : ContentPage
{
public
SectionA_Form()
{
InitializeComponent();
}
}
Reply
Answers (
1
)
Button onclicked in Xamarin Forms
Xamarin Form BreadCrumbs