0
我有一個ComboBox
其中ItemsSource
是List<TimeSpan>
。我試圖設置ItemStringFormat
屬性,以便將時間格式設置爲「13:25」而不是「13:25:00」,但是,我得到的只是空項目。無法在Combobox上格式化Timespan
我試圖
<ComboBox ItemsSource="{Binding MyCollection}" ItemStringFormat="hh\\:mm"/>
我也試過
ItemStringFormat="hh:mm"