Files
ShrlAlgoToolkit/ShrlAlgo.RvKits/Windows/ProgressMonitorView.xaml

35 lines
1.3 KiB
XML

<Window
x:Class="ShrlAlgo.RvKits.Windows.ProgressMonitorView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="clr-namespace:ShrlAlgo.RvKits.Windows"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="{Binding Title}"
d:DataContext="{d:DesignInstance Type=controls:ProgressMonitorViewModel}"
Background="{DynamicResource MaterialDesign.Brush.Background}"
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>
<StackPanel Margin="10">
<TextBlock Text="{Binding CurrentContext}" />
<Separator />
<ProgressBar
Width="300"
Height="23"
Maximum="{Binding MaxValue}"
Value="{Binding CurrentValue}" />
<Separator />
<Button
x:Name="btnCancel"
HorizontalAlignment="Right"
Content="取消"
IsCancel="True" />
</StackPanel>
</Window>