Files
RevitArchive/WPFMonitorRevitAPI-master/EncapsulationProgressBar/ProgressMonitorView.xaml
2026-02-23 14:58:05 +08:00

25 lines
1.1 KiB
XML

<Window x:Class="EncapsulationProgressBar.Views.ProgressMonitorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:EncapsulationProgressBar.Views"
mc:Ignorable="d"
Title="{Binding ProcessTitle}" ResizeMode="NoResize" SizeToContent="WidthAndHeight" WindowStartupLocation="CenterScreen">
<Window.Resources>
<Style TargetType="Separator">
<Setter Property="Height" Value="5"/>
<Setter Property="Background" Value="Transparent"/>
</Style>
</Window.Resources>
<StackPanel Margin="10">
<TextBlock Text="{Binding CurrentContext}"/>
<Separator/>
<ProgressBar Height="23" Width="300" Value="{Binding CurrentValue}" Maximum="{Binding MaxValue}"/>
<Separator/>
<Button x:Name="btnCancel" Content="取消" Width="50" HorizontalAlignment="Right" IsCancel="True"/>
</StackPanel>
</Window>