草庐IT

contentpage

全部标签

Xamarin-如何在ListView中打开新的ContentPage?

我有来自我的Web服务的列表,我像这样显示了:现在,我希望能够单击一个项目并打开一个新的ContentPage看答案publicvoidCursoView_ItemSelected(objectsender,ItemSelectedEventArgse){//thisassumesyourcurrentpageisalreadycontainedinaNavigationPageNavigation.PushAsync(newMyNextPage());}

ios - Xamarin.Forms ContentPage.BackgroundImage

Xamarin.FormsVS2013开发环境我知道还有其他关于此的主题,但它们没有回答我的问题。对于Android,背景图片效果很好。BackgroundImage=Device.OnPlatform("Resources/HTbg@2x.png","Drawable/HTMobile.png","Images/HTMobile.png");对于iOS,我无法让它工作。我试过图像的普通版和视网膜版,它们是这些屏幕的正确尺寸。我试过将它们放在项目的根文件夹中我试过具有透明或纯色图像背景的图像在iOS中,在上述任何情况下,背景图像仅在所有CustomContentPage控件之上显示一个

android - 如何在 Xamarin.Forms 中设置 ContentPage 方向

我正在使用Xamarin.Forms创建一个跨平台应用程序,我所有的ContentPages都位于PCL中。我正在寻找一种方法来将单个ContentPage的orientation设置并锁定为Landscape,最好无需创建另一个每个平台特定项目中的Activity。由于我的ContentPage.Content设置为ScrollView,我尝试将ScrollOrientation设置为Horizo​​ntal,但是这不起作用。我也试过使用RelativeLayout,但我看不到Orientation属性。publicclassPlanningBoardView:ContentPage

c# - Xamarin.forms 混合 ContentPage 和 Android Activity

如何将两个页面混合在一起我想做一些特定平台(Android)OnActivityResult但我在Xamarin.Forms中使用ContentPage我如何知道我的.Droid项目中的activity是什么?假设我有一个名为CalendarPage:ContentPage的页面。我应该在我的机器人项目中的什么地方注册它,以便我可以在该Activity(ContentPage)中捕获ActivityResult?我不知道,因为我是Xamarin.Forms的新手并正在学习它。 最佳答案 Xamarin表单在一个Activity上运行