2026-01-02 17:30:41 +08:00
|
|
|
|
<ui:MelWindow
|
2026-02-22 20:03:42 +08:00
|
|
|
|
x:Class="ShrlAlgoToolkit.RevitAddins.General.AutoSaveView"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
|
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2026-02-22 20:03:42 +08:00
|
|
|
|
xmlns:rvCommon1="clr-namespace:ShrlAlgoToolkit.RevitAddins.General"
|
2026-01-02 17:30:41 +08:00
|
|
|
|
xmlns:ui="https://github.com/ShrlAlgo/Melskin"
|
2026-02-22 20:03:42 +08:00
|
|
|
|
xmlns:rvCommon="clr-namespace:ShrlAlgoToolkit.RevitAddins.RvCommon"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
Title="自动保存"
|
|
|
|
|
|
Width="300"
|
|
|
|
|
|
Height="100"
|
|
|
|
|
|
d:DataContext="{d:DesignInstance Type=rvCommon:AutoSaveViewModel}"
|
|
|
|
|
|
Icon="{DynamicResource RevitIcon}"
|
|
|
|
|
|
mc:Ignorable="d">
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<b:Interaction.Triggers>
|
|
|
|
|
|
<b:EventTrigger EventName="Closing">
|
|
|
|
|
|
<b:InvokeCommandAction Command="{Binding ClosingCommand}" />
|
|
|
|
|
|
</b:EventTrigger>
|
|
|
|
|
|
</b:Interaction.Triggers>
|
|
|
|
|
|
<Window.Resources>
|
|
|
|
|
|
<ResourceDictionary>
|
|
|
|
|
|
<ResourceDictionary.MergedDictionaries>
|
2025-04-24 20:56:10 +08:00
|
|
|
|
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
2024-09-22 11:05:41 +08:00
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
|
|
</ResourceDictionary>
|
|
|
|
|
|
</Window.Resources>
|
2025-08-20 12:10:35 +08:00
|
|
|
|
<ui:Grid Margin="5" VerticalAlignment="Center">
|
2025-10-10 11:19:58 +08:00
|
|
|
|
<CheckBox x:Name="CbAutoSave" IsChecked="{Binding IsActiveAutoSave, UpdateSourceTrigger=PropertyChanged}" />
|
|
|
|
|
|
<TextBlock VerticalAlignment="Center" Text="自动保存时间间隔(分钟):" />
|
2024-09-22 11:05:41 +08:00
|
|
|
|
<TextBox
|
2025-10-10 11:19:58 +08:00
|
|
|
|
x:Name="TbIntervalMinutes"
|
|
|
|
|
|
Width="80"
|
2024-09-22 11:05:41 +08:00
|
|
|
|
InputMethod.IsInputMethodEnabled="False"
|
|
|
|
|
|
IsEnabled="{Binding IsChecked, ElementName=CbAutoSave}"
|
2025-10-10 11:19:58 +08:00
|
|
|
|
Text="{Binding IntervalTime, UpdateSourceTrigger=PropertyChanged}" />
|
2025-08-20 12:10:35 +08:00
|
|
|
|
</ui:Grid>
|
2026-01-02 17:30:41 +08:00
|
|
|
|
</ui:MelWindow>
|