示例#1
0
        void _picker_SelectedIndexChanged(object sender, EventArgs e)
        {
            ImeFlags flag = (ImeFlags)Enum.Parse(typeof(ImeFlags), _picker.SelectedItem.ToString());

            _entry.On <Android>().SetImeOptions(flag);
            UpdateLabelText();
        }
示例#2
0
        void OnSelectedIndexChanged(object sender, EventArgs e)
        {
            ImeFlags flag = (ImeFlags)Enum.Parse(typeof(ImeFlags), _picker.SelectedItem.ToString());

            _entry.On <Android>().SetImeOptions(flag);
            _label.Text = $"ImeOptions: {_entry.On<Android>().ImeOptions()}";
        }
示例#3
0
        void OnSelectedIndexChanged(object sender, EventArgs e)
        {
            ImeFlags flag = (ImeFlags)Enum.Parse(typeof(ImeFlags), _picker.SelectedItem.ToString());

            _entry.On <Microsoft.Maui.Controls.PlatformConfiguration.Android>().SetImeOptions(flag);
            _label.Text = $"ImeOptions: {_entry.On<Microsoft.Maui.Controls.PlatformConfiguration.Android>().ImeOptions()}";
        }
示例#4
0
文件: Entry.cs 项目: sung-su/maui
 /// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Entry.xml" path="//Member[@MemberName='SetImeOptions'][2]/Docs" />
 public static IPlatformElementConfiguration <Android, FormsElement> SetImeOptions(this IPlatformElementConfiguration <Microsoft.Maui.Controls.PlatformConfiguration.Android, FormsElement> config, ImeFlags value)
 {
     SetImeOptions(config.Element, value);
     return(config);
 }
示例#5
0
文件: Entry.cs 项目: sung-su/maui
 /// <include file="../../../../docs/Microsoft.Maui.Controls.PlatformConfiguration.AndroidSpecific/Entry.xml" path="//Member[@MemberName='SetImeOptions'][1]/Docs" />
 public static void SetImeOptions(BindableObject element, ImeFlags value)
 {
     element.SetValue(ImeOptionsProperty, value);
 }
示例#6
0
 public static IPlatformElementConfiguration <Android, FormsElement> SetImeOptions(this IPlatformElementConfiguration <Xamarin.Forms.PlatformConfiguration.Android, FormsElement> config, ImeFlags value)
 {
     SetImeOptions(config.Element, value);
     return(config);
 }