Files
SzmediTools/Szmedi.RvKits/Common/TimerSetterWin.xaml
2025-09-16 16:06:41 +08:00

42 lines
1.9 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<controls:MaterialWindow
x:Class="Szmedi.RvKits.Common.TimerSetterWin"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:Szmedi.RvKits.Controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Szmedi.RvKits.Common"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="自动保存"
Height="100"
d:DataContext="{d:DesignInstance local:TimerSetterWin}"
SizeToContent="Width"
mc:Ignorable="d">
<controls:MaterialWindow.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</controls:MaterialWindow.Resources>
<StackPanel Orientation="Horizontal">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<CheckBox x:Name="CbAutoSave" VerticalContentAlignment="Center" Content="自动保存时间间隔(分钟)" IsChecked="{Binding AutoSave, UpdateSourceTrigger=PropertyChanged}" ToolTip="勾选以启用自动保存" />
<TextBox
x:Name="TbIntervalMinutes"
Width="80"
HorizontalAlignment="Center"
VerticalAlignment="Center"
InputMethod.IsInputMethodEnabled="False"
IsEnabled="{Binding IsChecked, ElementName=CbAutoSave}"
Text="{Binding IntervalTime, UpdateSourceTrigger=PropertyChanged}" />
</StackPanel>
<Button
Grid.Row="1"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Click="Button_Click"
Content="确定" />
</StackPanel>
</controls:MaterialWindow>