Xamarin Forms(iOS)-从选择器中删除快捷方式栏 [英] Xamarin Forms (iOS) - Remove Shortcut Bar from Picker

查看:89
本文介绍了Xamarin Forms(iOS)-从选择器中删除快捷方式栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xamarin Forms中,这是默认的iOS Picker:

In Xamarin Forms, here's the default iOS Picker:

如何删除快捷方式栏(撤消/重做/复制/粘贴)?

How do I remove the shortcut bar (undo / redo / copy / paste)?

推荐答案

在自定义渲染器中,只需将控件的InputAssistantItem.LeadingBarButtonGroupsInputAssistantItem.TrailingBarButtonGroups设置为null.

In your custom renderer, you simply need to set the Control's InputAssistantItem.LeadingBarButtonGroups and InputAssistantItem.TrailingBarButtonGroups to null.

渲染器看起来像这样:

这篇关于Xamarin Forms(iOS)-从选择器中删除快捷方式栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆