Step1:
App.Xaml.cs
public App () { InitializeComponent(); MainPage = new App32.MainPage(); }
Step2: MainPage.Xaml
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:App32" x:Class="App32.MainPage" BackgroundImage="school.jpg"> <ContentPage.Content> <StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"> <Entry Placeholder="School Home-Ground"/> <Button Text="Click To Enter " BackgroundColor="White" TextColor="Black" Clicked="Button_OnClicked" Image="myicon.png"></Button> </StackLayout> </ContentPage.Content> </ContentPage>
Step3: MainPage.Xaml.cs
private void Button_OnClicked(object sender, EventArgs e) { DisplayAlert("Important-Notification", "Do you want Play Baseball ?", "Yes", "No"); }
Step4: Hola We Have Completed Our Tutorial :D
No comments:
Post a Comment