Files
Ursa.Avalonia/demo/Ursa.Demo/Pages/ClockDemo.axaml
2024-06-13 18:02:01 +08:00

19 lines
785 B
XML

<UserControl
x:Class="Ursa.Demo.Pages.ClockDemo"
xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:u="https://irihi.tech/ursa"
xmlns:vm="clr-namespace:Ursa.Demo.ViewModels"
x:DataType="vm:ClockDemoViewModel"
x:CompileBindings="True"
d:DesignHeight="450"
d:DesignWidth="800"
mc:Ignorable="d">
<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>