38 lines
1.8 KiB
Plaintext
38 lines
1.8 KiB
Plaintext
|
|
<ex:FluentWindowEx
|
|||
|
|
x:Class="Sai.RvKits.RvCommon.AutoSaveView"
|
|||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|||
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|||
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|||
|
|
xmlns:ex="https://github.com/sherlockforrest/Wpf.Ui.Extend"
|
|||
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|||
|
|
xmlns:rvCommon="clr-namespace:Sai.RvKits.RvCommon"
|
|||
|
|
xmlns:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
|||
|
|
Title="自动保存"
|
|||
|
|
Width="300"
|
|||
|
|
d:DataContext="{d:DesignInstance Type=rvCommon:AutoSaveViewModel}"
|
|||
|
|
mc:Ignorable="d">
|
|||
|
|
<b:Interaction.Triggers>
|
|||
|
|
<b:EventTrigger EventName="Closing">
|
|||
|
|
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
|
|||
|
|
</b:EventTrigger>
|
|||
|
|
</b:Interaction.Triggers>
|
|||
|
|
<Window.Resources>
|
|||
|
|
<ResourceDictionary>
|
|||
|
|
<ResourceDictionary.MergedDictionaries>
|
|||
|
|
<ResourceDictionary Source="pack://application:,,,/Sai.RvKits;component/WPFUI.xaml" />
|
|||
|
|
</ResourceDictionary.MergedDictionaries>
|
|||
|
|
</ResourceDictionary>
|
|||
|
|
</Window.Resources>
|
|||
|
|
<ex:AutoGrid Margin="5" VerticalAlignment="Center">
|
|||
|
|
<CheckBox x:Name="CbAutoSave" IsChecked="{Binding IsActiveAutoSave, UpdateSourceTrigger=PropertyChanged}" />
|
|||
|
|
<TextBlock VerticalAlignment="Center" Text="自动保存时间间隔(分钟):" />
|
|||
|
|
<TextBox
|
|||
|
|
x:Name="TbIntervalMinutes"
|
|||
|
|
Width="80"
|
|||
|
|
InputMethod.IsInputMethodEnabled="False"
|
|||
|
|
IsEnabled="{Binding IsChecked, ElementName=CbAutoSave}"
|
|||
|
|
Text="{Binding IntervalTime, UpdateSourceTrigger=PropertyChanged}" />
|
|||
|
|
</ex:AutoGrid>
|
|||
|
|
</ex:FluentWindowEx>
|