Xamarin Forms (iOS) - Remove Shortcut Bar from Pic

2019-05-19 06:14发布

问题:

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: