简介
演示 Editor 属性。
- 在 XAML 中创建 Xamarin.Forms Editor 。
- 响应 Editor 的文本更改。
- Editor 属性简介。
创建 Editor
- 打开已有项目 AwesomeApp。
- 添加新项 EditorPage.xaml。
- 编辑 EditorPage.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.EditorPage">
<ContentPage.Content>
<StackLayout Margin="20,32