xamarin - 如何制作圆角入口控件 Xamarin.Forms

标签 xamarin xamarin.ios xamarin.android xamarin.forms

我必须在 Xamarin.Forms 中使用圆角条目,但我还没有为此找到任何解决方案。

Xarin.Forms Entry Control in  Windows Phone

我正在尝试获得这种外观和感觉:

I want like this

请帮我解决这个问题。

最佳答案

我不确定这种方法是否有问题,因为它看起来很简单但没有人建议它。

但我不明白为什么不能只使用 IsClippedToBounds 设置为 trueFrame。这为您提供了一个内置的角半径,然后您可以根据需要进行调整。

        <Grid>               
             <Frame
                   Padding = "0"
                   CornerRadius     ="20"
                   IsClippedToBounds="true">
                <Editor [...whatever...]/>
            </Frame>
         </Grid>

我目前正在使用这个解决方案,它对我有用。

关于xamarin - 如何制作圆角入口控件 Xamarin.Forms,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37584006/

相关文章:

ios - xamarin 形成使用位置 iOS 的权限

ios - arm6 设备显示更高的内存使用率

android - JNI_OnLoad 在 android libmono.so 中失败

android - MvxListView 从代码中为模板布局创建绑定(bind)

c# - Xamarin.Forms DependencyService Get() 方法在 PCL 中返回 Null

c# - Visual Studio 2015、Xamarin 和目标设备

android - 点击当前选项卡刷新页面时的 Xamarin.Forms TabbedPage 事件

ios - Xamarin.iOS 错误 : The Apple iOS SDK is not installed.(iOS9、XCode 7 测试版)

c# - RectForMapRect MonoTouch.UIKit.UIKitThreadAccessException

android - 'mono shared runtime' 始终部署到 android 设备