Skip to content

Commit a2b5bd1

Browse files
authored
fixed TimePicker issues
1 parent 80d1ae4 commit a2b5bd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Controls/TableViewTimePicker.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ protected override void OnApplyTemplate()
3939
UpdateTimeText();
4040
}
4141

42-
protected override void OnTapped(TappedRoutedEventArgs e)
42+
protected override void OnPointerPressed(PointerRoutedEventArgs e)
4343
{
44-
base.OnTapped(e);
44+
base.OnPointerPressed(e);
4545

4646
ShowFlyout();
4747
}
@@ -110,7 +110,7 @@ private void UpdateTimeText()
110110
{
111111
if (_timeText is null) return;
112112

113-
var formatter = DateTimeFormatHelper.GetDateTimeFormatter("shortime", ClockIdentifier);
113+
var formatter = DateTimeFormatHelper.GetDateTimeFormatter("shorttime", ClockIdentifier);
114114

115115
_timeText.Text = SelectedTime switch
116116
{

0 commit comments

Comments
 (0)