xamarin.forms.entry

How to change the keyboard layout of a UWP app in Xamarin Forms?

浪尽此生 提交于 2019-12-11 04:49:33
问题 I am working on a Xamarin Forms app which I want to deploy on Windows (UWP). The current problem I am trying to solve is to set the keyboard layout on an "Entry". According to the docs the only change I have to make is to add a "keyboard" property in the Entry xaml code like that: <Entry Keyboard="Numeric" /> That does work fine in Windows Mobile Emulator and the keyboard does change as soon as I click on the entry. However, when I run the project on a Surface Pro tablet (UWP) the layout of

Changing keyboard's ImeOptions of Xamarin.Forms.Entry in custom renderer not working on Android

做~自己de王妃 提交于 2019-12-08 00:49:50
问题 What I have: I have a custom class MyEntry derived from Xamarin.Forms.Entry and custom renderer classes MyEntryRenderer for Android and iOS. What I want: I want to change the keyboard's "enter"-button to a "search"-button by changing ImeOptions on Android and ReturnKeyType on iOS (see sample code). When I press the altered "search"-button, the MyEntry.Completed event should be called (like before when I pressed the un-altered "enter"-button. What really happens: On iOS the code works like

Rounded corner for Entry - Xamarin forms UWP

泄露秘密 提交于 2019-12-08 00:13:21
问题 Is there anything possible to customize the radius of Entry to having a slightly rounded corner? 回答1: You can use Custom Renderer in xamarin.forms in iOS //... using App11; using App11.iOS; using Xamarin.Forms; using Xamarin.Forms.Platform.iOS; [assembly: ExportRenderer(typeof(MyEntry), typeof(MyiOSEntry))] namespace App11.iOS { public class MyiOSEntry:EntryRenderer { protected override void OnElementChanged(ElementChangedEventArgs<Entry> e) { base.OnElementChanged(e); if (Control != null) {

Changing keyboard's ImeOptions of Xamarin.Forms.Entry in custom renderer not working on Android

瘦欲@ 提交于 2019-12-06 07:43:20
What I have: I have a custom class MyEntry derived from Xamarin.Forms.Entry and custom renderer classes MyEntryRenderer for Android and iOS. What I want: I want to change the keyboard's "enter"-button to a "search"-button by changing ImeOptions on Android and ReturnKeyType on iOS (see sample code). When I press the altered "search"-button, the MyEntry.Completed event should be called (like before when I pressed the un-altered "enter"-button. What really happens: On iOS the code works like expected. But on Android nothing happens. The event doesn't get called. My question: How can I achieve

Central Directory Entry not found (ZipException)

吃可爱长大的小学妹 提交于 2019-12-02 04:55:46
问题 I am trying download zip file to SD card. I download it correctly, but when I open downloaded file (with ZipFile) I get this ZipException ("Central Directory Entry not found"). Internet-file is okay, SD-copy-file is okay (from PC opened and show files correctly), but for some reason don't work in Android. Code for download: BufferedInputStream stream = null; try { stream = new BufferedInputStream(is, 8192); } .... try { ByteArrayBuffer baf = new ByteArrayBuffer(50); int current = 0; while (

Central Directory Entry not found (ZipException)

你说的曾经没有我的故事 提交于 2019-12-02 02:15:50
I am trying download zip file to SD card. I download it correctly, but when I open downloaded file (with ZipFile) I get this ZipException ("Central Directory Entry not found"). Internet-file is okay, SD-copy-file is okay (from PC opened and show files correctly), but for some reason don't work in Android. Code for download: BufferedInputStream stream = null; try { stream = new BufferedInputStream(is, 8192); } .... try { ByteArrayBuffer baf = new ByteArrayBuffer(50); int current = 0; while ((current = stream.read()) != -1 ) baf.append((byte) current); BufferedOutputStream fos = new