fix: fix clear, fix panel am-pm panel initialization issue.

This commit is contained in:
Dong Bin
2025-02-18 21:48:31 +08:00
parent 27375f722e
commit 53b65f4eb7
2 changed files with 18 additions and 22 deletions

View File

@@ -154,6 +154,7 @@ public class TimePickerPresenter : TemplatedControl
{
panels.Add(_ampmScrollPanel);
_ampmSelector?.SetValue(DateTimePickerPanel.ItemFormatProperty, part);
if (_ampmSelector is not null) _ampmSelector.IsEnabled = _use12Clock;
}
}
catch