Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/Common/Controls/ProgressMonitorView.xaml

37 lines
1.5 KiB
Plaintext
Raw Normal View History

2024-09-22 11:05:41 +08:00
<Window
2026-02-22 20:03:42 +08:00
x:Class="ShrlAlgoToolkit.RevitAddins.Common.Controls.ProgressMonitorView"
2025-04-24 20:56:44 +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"
2026-02-22 20:03:42 +08:00
xmlns:controls1="clr-namespace:ShrlAlgoToolkit.RevitAddins.Common.Controls"
2025-04-24 20:56:44 +08:00
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:windows="clr-namespace:ShrlAlgoToolkit.RevitAddins.Common.Controls"
2025-10-10 11:19:58 +08:00
Title="{Binding Title}"
2026-02-22 20:03:42 +08:00
d:DataContext="{d:DesignInstance Type=windows:ProgressMonitorViewModel}"
2025-10-10 11:19:58 +08:00
Background="{DynamicResource MaterialDesign.Brush.Background}"
Icon="{DynamicResource RevitIcon}"
ResizeMode="NoResize"
SizeToContent="WidthAndHeight"
TextElement.Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
2024-09-22 11:05:41 +08:00
<Window.Resources>
2026-01-01 10:02:59 +08:00
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
2024-09-22 11:05:41 +08:00
</Window.Resources>
<StackPanel Margin="10">
<TextBlock Text="{Binding CurrentContext}" />
<Separator />
<ProgressBar
2025-10-10 11:19:58 +08:00
Width="300"
2024-09-22 11:05:41 +08:00
Height="23"
Maximum="{Binding MaxValue}"
2025-10-10 11:19:58 +08:00
Value="{Binding CurrentValue}" />
2024-09-22 11:05:41 +08:00
<Separator />
<Button
2025-10-10 11:19:58 +08:00
x:Name="btnCancel"
2025-04-24 20:56:44 +08:00
HorizontalAlignment="Right"
2025-10-10 11:19:58 +08:00
Content="取消"
IsCancel="True" />
2024-09-22 11:05:41 +08:00
</StackPanel>
</Window>