xamarin.forms - 内容页面不显示
问题描述
我正在尝试创建一个自定义键盘,下面是视图的 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>
解决方案
推荐阅读
- c - How to clear console without Flikerring in C/C++
- angular - Angular 7 Typerror:无法读取未定义的属性“userId”
- web-scraping - Jsoup doesnt show certain element which is visible at webpage
- javascript - Click on the button after the class appears in the DOM
- docker - Passing Parameters to NPM App in Dockerfile with Run Yarn
- java - Spring Boot:在浏览器中触发 InputStream 下载
- mongodb - How to prevent to anonymous access to Mongo DB?
- python - How do I limit request data being sent from server?
- javascript - 无需创建新列即可在 Google 表单中动态生成问题
- twitter-bootstrap - Bootstrap可以用RWD改变左列和右列的排序吗?