首页 > 解决方案 > 内容页面不显示

问题描述

我正在尝试创建一个自定义键盘,下面是视图的 xaml,在所有配置之后它显示一个空白页面。

<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:local="clr-namespace:CustomKeyboard" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="CustomKeyboard.MainPage" Title="Custom Keyboard App" BackgroundColor="White">
   <ScrollView>
      <Grid Padding="15">
         <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="*" />
         </Grid.RowDefinitions>
         <Entry Grid.Row="0" HorizontalOptions="FillAndExpand" VerticalOptions="Start" Placeholder="Regular entry..." />
         <StackLayout Grid.Row="1" Orientation="Vertical">
            <local:EntryWithCustomKeyboard x:Name="entry1" HorizontalOptions="FillAndExpand" Margin="0, 0, 0, 20" Keyboard="Text" TextColor="Black" Placeholder="Custom Keyboard entry..." />
            <local:EntryWithCustomKeyboard x:Name="entry2" HorizontalOptions="FillAndExpand" Keyboard="Text" TextColor="Black" Placeholder="Custom Keyboard entry 2..." />
         </StackLayout>
         <BoxView Grid.Row="2" />
      </Grid>
   </ScrollView>
</ContentPage>

标签: xamarin.forms

解决方案


推荐阅读