Xamarin Forms (iOS) - Remove Shortcut Bar from Picker

守給你的承諾、 提交于 2019-12-22 11:28:17

问题


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

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


回答1:


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

The renderer would look something like this:



来源:https://stackoverflow.com/questions/37442203/xamarin-forms-ios-remove-shortcut-bar-from-picker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!