TFLH/Views/Themes/Generic.xaml
2026-08-06 09:50:46 +08:00

35 lines
2.0 KiB
XML

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Views"
xmlns:mylocal="clr-namespace:Views.MyControl">
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Styles.xaml"/>
</ResourceDictionary.MergedDictionaries>
<!--<Style TargetType="{x:Type mylocal:TimeSpanPicker}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type mylocal:TimeSpanPicker}">
<Border Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}">
<StackPanel Orientation="Horizontal">
<mylocal:TimeTextBox x:Name="hourTbx" MinWidth="20" Text="{Binding Path=Hour, RelativeSource={RelativeSource TemplatedParent},UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Height="Auto" >
</mylocal:TimeTextBox>
<Label Content=":" VerticalAlignment="Center" Height="Auto"/>
<locmylocalal1:TimeTextBox MinWidth="20" Text="{Binding Path=Minute,RelativeSource={RelativeSource TemplatedParent},UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Height="Auto"></locmylocalal1:TimeTextBox>
<Label Content=":" VerticalAlignment="Center" Height="Auto"/>
<mylocal:TimeTextBox MinWidth="20" Text="{Binding Path=Second,RelativeSource={RelativeSource TemplatedParent},UpdateSourceTrigger=PropertyChanged}" VerticalAlignment="Center" Height="Auto"></mylocal:TimeTextBox>
</StackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>-->
</ResourceDictionary>