Files
SamplePreSystem-CS/SamplePreSystem.UI/Views/MonitorManager/chirld/SampleDetailWindow.xaml

52 lines
1.9 KiB
Plaintext
Raw Normal View History

2026-04-30 11:34:41 +08:00
<basewindows:BaseWindow
x:Class="SamplePre.UIWpf.MonitorManager.chirld.SampleDetailWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:basewindows="clr-namespace:SamplePre.UIWpf.BaseWindows"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pro="clr-namespace:SamplePreSystem.UI.BaseControls"
Title="样品详情"
Width="200"
Height="300"
ResizeMode="NoResize"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<StackPanel Margin="10">
<TextBlock Margin="5" Text="执行标准:固相萃取" />
<TextBlock Margin="5" Text="当前动作:离心" />
<TextBlock Margin="5" Text="执行时间30min" />
<TextBlock Margin="5" Text="执行进度40%" />
</StackPanel>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition />
</Grid.RowDefinitions>
<!-- // 自定义控件 - 预览主体部分 注意地址不一定是local 要看RingProgressBar类放在哪里 // -->
<pro:RingProgressBar
x:Name="ringProgress"
Width="100"
Height="100"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Progress="40" />
<TextBlock
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="20"
Foreground="Black"
Text="{Binding Progress, ElementName=ringProgress, StringFormat={}{0}%}" />
</Grid>
</Grid>
</basewindows:BaseWindow>