Xamarin. Простые элементы UI Xamarin Forms
Кнопка - Button
Поле ввода - Entry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numEntry = new Entry { | |
Placeholder = "Enter Number", | |
Keyboard = Keyboard.Numeric | |
}; |
Пример обработчика для поля ввода
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var numEntry = new Entry {...}; | |
numEntry.TextChanged += OnTextChanged; | |
... | |
void OnTextChanged(object sender, string newValue){ | |
... | |
} |
Комментарии
Отправить комментарий