ux: show date time format string

This commit is contained in:
leo 2024-12-30 17:47:55 +08:00
parent 7d0fa3b86d
commit 8d12227227
No known key found for this signature in database

View file

@ -71,7 +71,10 @@
SelectedIndex="{Binding DateTimeFormat, Mode=TwoWay}"> SelectedIndex="{Binding DateTimeFormat, Mode=TwoWay}">
<ComboBox.ItemTemplate> <ComboBox.ItemTemplate>
<DataTemplate x:DataType="{x:Type m:DateTimeFormat}"> <DataTemplate x:DataType="{x:Type m:DateTimeFormat}">
<TextBlock FontFamily="{DynamicResource Fonts.Monospace}" Text="{Binding DisplayText}"/> <Grid ColumnDefinitions="*,8,*">
<TextBlock Grid.Column="0" FontFamily="{DynamicResource Fonts.Monospace}" Text="{Binding DisplayText}"/>
<TextBlock Grid.Column="2" FontFamily="{DynamicResource Fonts.Monospace}" Text="{Binding DateTime}" Foreground="{DynamicResource Brush.FG2}"/>
</Grid>
</DataTemplate> </DataTemplate>
</ComboBox.ItemTemplate> </ComboBox.ItemTemplate>
</ComboBox> </ComboBox>