Browse Source

Fix TimePicker selection style (#21626)

pull/21634/head
shine 3 months ago
committed by GitHub
parent
commit
41b8a8df1b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      src/Avalonia.Themes.Fluent/Controls/TimePicker.xaml
  2. 5
      src/Avalonia.Themes.Simple/Controls/TimePicker.xaml

5
src/Avalonia.Themes.Fluent/Controls/TimePicker.xaml

@ -203,6 +203,11 @@
MaxHeight="398">
<Grid Name="ContentPanel" RowDefinitions="*,Auto">
<Grid Name="PART_PickerContainer">
<Grid.Styles>
<Style Selector="DateTimePickerPanel > ListBoxItem">
<Setter Property="Theme" Value="{StaticResource FluentDateTimePickerItem}" />
</Style>
</Grid.Styles>
<!--Ignore col defs here, set in code-->
<Panel Name="PART_HourHost" Grid.Column="0">
<ScrollViewer HorizontalScrollBarVisibility="Disabled"

5
src/Avalonia.Themes.Simple/Controls/TimePicker.xaml

@ -219,6 +219,11 @@
<Grid Name="ContentPanel"
RowDefinitions="*,Auto">
<Grid Name="PART_PickerContainer">
<Grid.Styles>
<Style Selector="DateTimePickerPanel > ListBoxItem">
<Setter Property="Theme" Value="{StaticResource SimpleDateTimePickerItem}" />
</Style>
</Grid.Styles>
<!-- Ignore col defs here, set in code -->
<Panel Name="PART_HourHost"
Grid.Column="0">

Loading…
Cancel
Save