简介
演示如何在 Xamarin.Forms 中显示弹出式菜单。
- 弹出提醒。
- 模式对话框。
弹出提醒
- 打开已有项目 AwesomeApp。
- 添加新项 PopupsPage.xaml。
- 编辑 PopupsPage.xaml:
<?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:d="http://xamarin.com/schemas/2014/forms/design"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
x:Class="AwesomeApp.PopupsPage">
<ContentPage.Content>
<StackLayout Margin="20,32