Files
2026-04-30 11:34:41 +08:00

52 lines
1.9 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<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>