반응형
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:App4AlertDialog" x:Class="App4AlertDialog.MainPage"> <ContentPage.Content> <StackLayout HorizontalOptions="CenterAndExpand" VerticalOptions="CenterAndExpand"> <Entry Placeholder="School Home-Ground"/> <Button x:Name="myBtn" Text="Click To Enter" BackgroundColor="White" Image="clicking.png"/> </StackLayout> </ContentPage.Content> </ContentPage> | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Xamarin.Forms; namespace App4AlertDialog { public partial class MainPage : ContentPage { public MainPage() { InitializeComponent(); this.myBtn.Clicked += MyBtn_Clicked; } private void MyBtn_Clicked(object sender, EventArgs e) { DisplayAlert("타이틀", "메세지", "Yes", "No"); } } } | cs |
http://xamaringuyhome.blogspot.kr/2017/10/xamarin-forms-alert-dialog-tutorial-23.html
'프로그래밍 > xamarin' 카테고리의 다른 글
[xamarin]어플 닫기 전에 물어보고 닫기 (0) | 2018.06.24 |
---|---|
[xamarin]Lottie Animation (0) | 2018.06.10 |
[xamarin]CustomRenderers (0) | 2018.06.03 |
[xamarin] Profile UI Design (0) | 2018.05.20 |
[xamarin]로그인화면 (0) | 2018.05.13 |