20220510_191_upperpc/AutomaticApp/Views/ADCPDetailsView.xaml

55 lines
3.2 KiB
Plaintext
Raw Permalink Normal View History

2023-07-27 02:57:34 +00:00
<UserControl x:Class="AutomaticApp.Views.ADCPDetailsView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:AutomaticApp.Views"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="45"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Border Background="#1118AABD" Margin="10,5"/>
<Border Background="#1118AABD" Margin="10,5" Grid.Row="1"/>
<Button Content="返回" Tag="&#xe6ff;" Style="{StaticResource ButtonStyle}" Height="28" Width="80"
HorizontalAlignment="Left" VerticalAlignment="Center" Margin="20,0"
Command="{Binding GoBackCommand,RelativeSource={RelativeSource AncestorType=Window}}"/>
<ScrollViewer VerticalScrollBarVisibility="Hidden" Grid.Row="1" Margin="10,5">
<ItemsControl Margin="0,5" ItemsSource="{Binding aDCPDetails}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Columns="2"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border BorderBrush="#9918AABD" BorderThickness="0,1,0,0" Background="#0A18AABD" Margin="10,5" Height="100">
<Grid TextBlock.FontSize="11">
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition />
</Grid.RowDefinitions>
<TextBlock VerticalAlignment="Center" FontSize="12" Foreground="#AAffffff" Margin="20,0">
<Run Text="&#xeb5a;" FontFamily="../Assets/Fonts/#iconfont" FontSize="18"/>
<Run Text="{Binding Name}"/>
</TextBlock>
<StackPanel Orientation="Horizontal" Grid.Row="1" VerticalAlignment="Top" Margin="30,0">
<TextBlock Text="{Binding OrderNum}" Foreground="#FF2BEDF1" FontSize="13"/>
</StackPanel>
<!--右上角图例 采集时间-->
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="10">
<Border Width="6" Height="6" Background="#552BEDF1" Margin="5,0"/>
<TextBlock Text="{Binding Record_Time,StringFormat=yyyy/MM/dd HH:mm:ss}" FontSize="11" Foreground="#44FFFFFF"/>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
</Grid>
</UserControl>