我正在使用Window Phone 8应用。问题是我需要在任何按钮点击事件上显示Timer选择器控件,所以我无法执行此任务所以请任何人帮我解决这个问题吗?
答案 0 :(得分:0)
XAML ::
<xctk:TimePicker Name="StartPicker" TextBoxBase.TextChanged="StartPicker_TextChanged" Value="{Binding StartTimeBinding, ElementName=MainWin, UpdateSourceTrigger=PropertyChanged}" Format="Custom" FormatString="hh:mm tt" Background="Yellow" Padding="0" Margin="0" BorderThickness="0" Width="100" Height="50" EndTime="11:59:0"/>
CS ::
private void EndPicker_TextChanged(object sender, TextChangedEventArgs e)
{
StartPicker.Focus(); // shows error at TimePicker Name(i.e StartPicker)
}
使用Windows Phone Toolkit Package。