20230201_145_upperpc/InSituLaboratory/Views/Pages/DashboardView.xaml

54 lines
2.6 KiB
XML

<UserControl x:Class="InSituLaboratory.Views.Pages.DashboardView"
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:InSituLaboratory.Views.Pages"
mc:Ignorable="d"
FontFamily="{StaticResource DigitalDisplay}"
d:DesignHeight="450" d:DesignWidth="800">
<ScrollViewer Margin="0,5,0,10">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
<RowDefinition Height="auto"/>
</Grid.RowDefinitions>
<!--第二行-->
<ItemsControl ItemsSource="{Binding BoardList}">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
<UniformGrid Rows="1"/>
</ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
<Border CornerRadius="5" Background="#FAFCFF" Margin="10">
<Border.Effect>
<DropShadowEffect BlurRadius="10" ShadowDepth="0"
Color="#555" Opacity="0.1"/>
</Border.Effect>
<StackPanel Margin="30,10">
<TextBlock Foreground="#AAA" Margin="0,10,0,5" FontSize="12">
<Run Text="{Binding Icon}" FontFamily="{StaticResource Icons}" Foreground="{Binding Color}" FontSize="15"/>
<Run Text="{Binding Header}"/>
</TextBlock>
<TextBlock Text="{Binding Value,StringFormat={}{0:N0}}" FontSize="22" FontWeight="Normal" Foreground="#555"/>
<Grid Margin="0,5,0,10" TextBlock.FontSize="11">
<TextBlock HorizontalAlignment="Left" Foreground="Green">
</TextBlock>
</Grid>
</StackPanel>
</Border>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</ScrollViewer>
</UserControl>