42 lines
1.9 KiB
Plaintext
42 lines
1.9 KiB
Plaintext
|
|
<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>
|