Merge pull request #259 from irihitech/clock

Clock: Enable smooth second hand movement.
This commit is contained in:
Dong Bin
2024-06-15 19:59:34 +08:00
committed by GitHub
2 changed files with 105 additions and 43 deletions

View File

@@ -10,9 +10,9 @@
x:CompileBindings="True"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<Grid>
<u:Clock HorizontalAlignment="Left" Time="{Binding Time}"></u:Clock>
<Grid RowDefinitions="Auto, *">
<ToggleSwitch Content="Smooth" Name="smooth"></ToggleSwitch>
<u:Clock Grid.Row="1" HorizontalAlignment="Left" IsSmooth="{Binding #smooth.IsChecked}" Time="{Binding Time}"></u:Clock>
</Grid>
</UserControl>