清理ColorPicker,进度条。修复UI问题
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<Window
|
||||
x:Class="ShrlAlgoToolkit.RevitAddins.Common.Controls.ProgressWindow"
|
||||
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:local1="clr-namespace:ShrlAlgoToolkit.RevitAddins.Common.Controls"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="{Binding Title}"
|
||||
Width="450"
|
||||
Height="180"
|
||||
d:DataContext="{d:DesignInstance Type=local1:ProgressViewModel}"
|
||||
ResizeMode="NoResize"
|
||||
ShowInTaskbar="False"
|
||||
Topmost="True"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
WindowStyle="ToolWindow"
|
||||
mc:Ignorable="d">
|
||||
<Window.Resources>
|
||||
<ResourceDictionary Source="pack://application:,,,/ShrlAlgoToolkit.RevitAddins;component/WPFUI.xaml" />
|
||||
</Window.Resources>
|
||||
<Grid Margin="20">
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
|
||||
<!-- 状态文本 -->
|
||||
<TextBlock
|
||||
Grid.Row="0"
|
||||
Margin="0,0,0,10"
|
||||
FontSize="14"
|
||||
Text="{Binding Message}"
|
||||
TextTrimming="CharacterEllipsis" />
|
||||
|
||||
<!-- 进度条 -->
|
||||
<ProgressBar
|
||||
Grid.Row="1"
|
||||
Height="25"
|
||||
Maximum="{Binding Maximum}"
|
||||
Value="{Binding ProgressValue}" />
|
||||
|
||||
<!-- 进度数字与取消按钮 -->
|
||||
<Grid Grid.Row="2" Margin="0,15,0,0">
|
||||
<TextBlock VerticalAlignment="Center" Foreground="Gray">
|
||||
<Run Text="{Binding ProgressValue, Mode=OneWay, StringFormat={}{0:0}}" />
|
||||
<Run Text=" / " />
|
||||
<Run Text="{Binding Maximum, Mode=OneWay, StringFormat={}{0:0}}" />
|
||||
</TextBlock>
|
||||
|
||||
<Button
|
||||
Width="80"
|
||||
HorizontalAlignment="Right"
|
||||
Click="BtnCancel_Click"
|
||||
Content="取 消" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Window>
|
||||
Reference in New Issue
Block a user