我已经使用telerik控件启动了我的Xamarin项目,出于某种原因,当我在Android模拟器上部署应用程序时,它显示一个空白屏幕,请注意我从我跟随的Telerik演示示例中获取的Xaml代码步骤,它完美地工作,直到我将这些控件应用到我的应用程序。所有参考文献均按示例进行。请参阅下面的我的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:telerikPrimitives="clr-namespace:Telerik.XamarinForms.Primitives;assembly=Telerik.XamarinForms.Primitives"
xmlns:telerik="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls"
xmlns:local="clr-namespace:PRPClockingXamarin"
x:Class="PRPClockingXamarin.Views.MainPage"
xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls">
<ContentPage.ToolbarItems>
<ToolbarItem Activated="OnToolbarButtonClick" Order="Primary" Priority="0" Text="Open SideDrawer">
<ToolbarItem.Icon>
<OnPlatform x:TypeArguments="FileImageSource"
iOS="hamburgerButtonIcon.png"
Android="hamburgerButtonIcon.png"
WinPhone="Assets/hamburgerButtonIcon.png" />
</ToolbarItem.Icon>
</ToolbarItem>
</ContentPage.ToolbarItems>
<Grid>
<telerikPrimitives:RadSideDrawer x:Name="drawer" DrawerLength="250">
<telerikPrimitives:RadSideDrawer.MainContent>
<Grid BackgroundColor="Gray">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Label Text="Transition Type:"/>
<Picker Grid.Row="1" x:Name="picker" SelectedIndexChanged="picker_SelectedIndexChanged">
<Picker.Items>
<x:String>Push</x:String>
<x:String>Reveal</x:String>
<x:String>ReverseSlideOut</x:String>
<x:String>ScaleUp</x:String>
<x:String>SlideAlong</x:String>
<x:String>SlideInOnTop</x:String>
</Picker.Items>
</Picker>
<Label Grid.Row="2" x:Name="descritpionLabel">
</Label>
<Button Text="Open SideDrawer" IsVisible="false" x:Name="button1"/>
</Grid>
</telerikPrimitives:RadSideDrawer.MainContent>
<telerikPrimitives:RadSideDrawer.DrawerContent>
<Grid BackgroundColor="#826182" WidthRequest="220">
<ListView x:Name="drawerList" />
</Grid>
</telerikPrimitives:RadSideDrawer.DrawerContent>
</telerikPrimitives:RadSideDrawer>
</Grid>
</ContentPage>