在 Xamarin.Forms PCL XAML 页面中禁用自动完成 [英] Disable autocomplete in Xamarin.Forms PCL XAML Page

查看:32
本文介绍了在 Xamarin.Forms PCL XAML 页面中禁用自动完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 PCL,它将我的 MVVM 页面存储在 XAML 中.我在 XAML 文件中有以下内容,但我想禁用键盘上的自动完成功能.有谁知道我如何在 XAML 中做到这一点?

I have a PCL which stores my MVVM pages in XAML. I have the following in the XAML file, but I'd like to disable the autocomplete feature on the keyboard. Does anyone know how I can do this in the XAML?

<Entry Text="{Binding Code}" Placeholder="Code" />

推荐答案

Forms 支持 KeyboardFlags.Suggestion 枚举我认为是为了控制这种行为,但它似乎没有很好的记录.

Forms supports a KeyboardFlags.Suggestion enum which I assume is intended to control this behavior, but it doesn't appear to be very well documented.

这篇关于在 Xamarin.Forms PCL XAML 页面中禁用自动完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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