fix: fix cross row flashing issue.

This commit is contained in:
rabbitism
2024-06-25 12:55:50 +08:00
parent 83833fbdd3
commit 35fbf47b72

View File

@@ -165,10 +165,10 @@
<ControlTheme x:Key="{x:Type u:CalendarView}" TargetType="u:CalendarView"> <ControlTheme x:Key="{x:Type u:CalendarView}" TargetType="u:CalendarView">
<Setter Property="MinHeight" Value="260" /> <Setter Property="MinHeight" Value="260" />
<Setter Property="MinWidth" Value="260" /> <Setter Property="MinWidth" Value="260" />
<Setter Property="Background" Value="Transparent" />
<Setter Property="Template"> <Setter Property="Template">
<ControlTemplate TargetType="u:CalendarView"> <ControlTemplate TargetType="u:CalendarView">
<Panel> <Grid Background="{TemplateBinding Background}" RowDefinitions="Auto, *">
<Grid RowDefinitions="Auto, *">
<Grid <Grid
Grid.Row="0" Grid.Row="0"
Margin="0,0,0,16" Margin="0,0,0,16"
@@ -260,7 +260,6 @@
ColumnDefinitions="*, *, *" ColumnDefinitions="*, *, *"
RowDefinitions="*, *, *, *" /> RowDefinitions="*, *, *, *" />
</Grid> </Grid>
</Panel>
</ControlTemplate> </ControlTemplate>
</Setter> </Setter>
</ControlTheme> </ControlTheme>