整理代码

This commit is contained in:
ShrlAlgo
2025-10-10 11:19:58 +08:00
parent 4722a4c881
commit 9d40762f03
111 changed files with 3238 additions and 3112 deletions

View File

@@ -1,18 +1,19 @@
<Window
Background="{DynamicResource MaterialDesign.Brush.Background}"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
TextElement.Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
Title="{Binding Title}"
WindowStartupLocation="CenterScreen"
d:DataContext="{d:DesignInstance Type=controls:ProgressMonitorViewModel}"
mc:Ignorable="d"
x:Class="ShrlAlgoToolkit.RevitAddins.Windows.ProgressMonitorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:ShrlAlgoToolkit.RevitAddins.Windows"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
Title="{Binding Title}"
d:DataContext="{d:DesignInstance Type=controls:ProgressMonitorViewModel}"
Background="{DynamicResource MaterialDesign.Brush.Background}"
Icon="{DynamicResource RevitIcon}"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
TextElement.Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Window.Resources>
<ResourceDictionary Source="pack://application:,,,/Szmedi.RvKits;component/WPFUI.xaml" />
</Window.Resources>
@@ -20,15 +21,15 @@
<TextBlock Text="{Binding CurrentContext}" />
<Separator />
<ProgressBar
Width="300"
Height="23"
Maximum="{Binding MaxValue}"
Value="{Binding CurrentValue}"
Width="300" />
Value="{Binding CurrentValue}" />
<Separator />
<Button
Content="取消"
x:Name="btnCancel"
HorizontalAlignment="Right"
IsCancel="True"
x:Name="btnCancel" />
Content="取消"
IsCancel="True" />
</StackPanel>
</Window>