xamarin - 如何在xamarin表单中使用X和Y坐标定位按钮?

标签 xamarin xamarin.forms

我想将按钮放置在距左侧和顶部有一定像素距离的位置。我有放置按钮的确切位置(以像素为单位)。但是,我该怎么做呢?

最佳答案

尝试绝对布局

https://developer.xamarin.com/guides/xamarin-forms/user-interface/layouts/absolute-layout/

另一个选项是创建 View 渲染器,在 native 部分实现此功能。

关于xamarin - 如何在xamarin表单中使用X和Y坐标定位按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43494227/

相关文章:

c# - 应用打开时的调用方法

xamarin - 在 Xamarin 表单中的堆栈布局中加载 Xaml

xamarin - 如何在 AbsoluteLayout 上强制使用方形布局?

c# - 通过代码选择 TextCell 不会突出显示行

c# - 应用程序关闭时的 Xamarin.Forms iOS PushNotification

Xamarin 表单 : Is it normal to have different screen for different viewModel

android - 制作视频合并移动应用程序的最佳方法

c# - 如何用 Device.OnPlatform 翻译这个 Padding? (iOS 案例)

android - Xamarin Forms 应用程序在 Android 8.1 及更低版本上崩溃 | JNI 在应用程序中检测到错误 : mid == null

android - Android 上的 Xamarin WebView 显示多个实例