C#
1
Вклад в тег
public class Student
{
[DisplayName("Пол")]
[UIHint("Gender")]
public bool? Gender { get; set; }
[DataType(DataType.Date)]
[DisplayName("Дата рождения")]
public DateTime? Birthday { get; set; }
}
@model bool?
<select class="list-box tri-state" id="Gender" name="Gender"><option value="">Не задано</option>
<option selected="selected" value="true">Мужской</option>
<option value="false">Женский</option>
</select>
textBox1.Text += e.Text;
private void textBox1_PreviewKeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Space && char.IsWhiteSpace(znak[rate]))
{
rate++;
}
else if (e.Key != Key.Space)
{
}
else
{
e.Handled = true;
}
}