KeyboardTypeConverter 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
문자열을 Keyboard로 변환하는 TypeConverter입니다.
[Xamarin.Forms.Xaml.TypeConversion(typeof(Xamarin.Forms.Keyboard))]
public class KeyboardTypeConverter : Xamarin.Forms.TypeConverter
type KeyboardTypeConverter = class
inherit TypeConverter
- 상속
- 특성
설명
다음 XAML 코드 조각은 백그라운드에서 KeyboardTypeConverter가 사용되는 경우를 보여 줍니다.
<Entry Keyboard="Keyboard.Telephone" />
다음은 양식의 KeyboardTypeConverter 몇 가지 예를 보여 줍니다.
var converter = new KeyboardTypeConverter ();
foreach (var kvp in new Dictionary<string, Keyboard> {
{"Keyboard.Default", Keyboard.Default},
{"Keyboard.Email", Keyboard.Email},
{"Keyboard.Text", Keyboard.Text},
{"Keyboard.Url", Keyboard.Url},
{"Keyboard.Telephone", Keyboard.Telephone},
{"Keyboard.Chat", Keyboard.Chat},
})
Assert.AreSame (kvp.Value, converter.ConvertFrom (kvp.Key));
생성자
KeyboardTypeConverter() |
KayboardTypeConverter 클래스의 새 인스턴스를 초기화합니다. |
메서드
CanConvertFrom(Type) |
파생 클래스에서 구현되는 경우 파생 형식 변환기가 |
ConvertFrom(CultureInfo, Object) |
사용되지 않습니다.
파생 클래스에서 구현되는 경우 |
ConvertFrom(Object) |
사용되지 않습니다.
현재 문화권 정보 및 |
ConvertFromInvariantString(String) |
유효한 키보드 이름에 대한 키보드를 반환합니다. |