<pu:WindowX  
        x:Class="SWRIS.Pages.DamagesDialog"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:SWRIS.Pages"
        WindowStyle="None" ResizeMode="NoResize" IsEscEnabled="True"
        AllowsTransparency="True"  FontFamily="{StaticResource PuHuiTiRegular}"
        xmlns:pu="https://opensource.panuon.com/wpf-ui" Topmost="True"
        xmlns:cvt="clr-namespace:SWRIS.Converters" Background="Transparent"
        pu:WindowXCaption.Height="0" WindowStartupLocation="CenterScreen"  
        Title="DamagesDialog" Height="550" Width="800">
    <Window.Resources>
        <cvt:DamageLevelToTextConverter x:Key="DamageLevelToTextConverter"/>
        <cvt:DamageLevelToColorConverter x:Key="DamageLevelToColorConverter"/>
    </Window.Resources>
    <Border BorderBrush="#5A1827" BorderThickness="3" CornerRadius="10" Background="#2C0F2A">
        <StackPanel Orientation="Vertical">
            <Grid Height="80">
                <TextBlock Text="损伤数据" FontSize="36" FontWeight="Bold" FontFamily="{StaticResource PuHuiTiBold}" Foreground="#FF2626" 
                       VerticalAlignment="Center" HorizontalAlignment="Center"/>
                <TextBlock FontFamily="{StaticResource PanuonIconFont}" Text="&#xe92d;" 
                       HorizontalAlignment="Right" VerticalAlignment="Top"
                           FontWeight="Bold" FontSize="22" 
                       MouseLeftButtonDown="Closed_MouseLeftButtonDown" Cursor="Hand" 
                       Background="Transparent" Foreground="#77233D" Margin="15,15"/>
            </Grid>
            <UniformGrid Columns="3" Background="#772331" Height="50">
                <TextBlock Text="损伤位置" FontSize="24" Foreground="#F5BBC2" FontWeight="Medium" FontFamily="{StaticResource PuHuiTiRegular}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <TextBlock Text="损伤当量" FontSize="24" Foreground="#F5BBC2" FontWeight="Medium" FontFamily="{StaticResource PuHuiTiRegular}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                <TextBlock Text="损伤级别" FontSize="24" Foreground="#F5BBC2" FontWeight="Medium" FontFamily="{StaticResource PuHuiTiRegular}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
            </UniformGrid>
            <ScrollViewer VerticalScrollBarVisibility="Auto" MaxHeight="410" pu:ScrollBarHelper.ThumbCornerRadius="3" 
                          pu:ScrollBarHelper.ThumbBackground="#77233D">
                <ItemsControl  ItemsSource="{Binding Alarms}">
                    <ItemsControl.ItemTemplate>
                        <DataTemplate>
                            <Border BorderThickness="0,0,0,0.5" BorderBrush="#BB77233D">
                                <UniformGrid Columns="3" Height="50">
                                    <StackPanel Orientation="Horizontal" Margin="45,0,0,0" HorizontalAlignment="Left">
                                        <Grid Width="24" Height="24" Margin="0 0 8 0">
                                            <Ellipse Fill="#4DFF2626" Width="24" Height="24"/>
                                            <Ellipse Fill="#FF2626" Width="12" Height="12" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                                        </Grid>
                                        <TextBlock Foreground="#FFFFFF" VerticalAlignment="Center" Margin="10,0"  FontFamily="{StaticResource PuHuiTiRegular}">
                                            <Run Text="{Binding DamagePosition,StringFormat=#0.00}" FontSize="24" FontWeight="Medium"/>
                                            <Run Text="m" FontSize="20" FontWeight="Medium"/>
                                        </TextBlock>
                                    </StackPanel>
                                    <TextBlock FontSize="24" Foreground="#FFFFFF"  FontFamily="{StaticResource PuHuiTiRegular}" 
                                               VerticalAlignment="Center" HorizontalAlignment="Center">
                                        <Run Text="{Binding DamageValue,StringFormat=#0.0}" FontSize="24" FontWeight="Medium"/>
                                        <Run Text="%" FontSize="20" FontWeight="Medium"/>
                                    </TextBlock>
                                    <TextBlock Text="{Binding DamageLevel,Converter={StaticResource DamageLevelToTextConverter}}"
                                               Foreground="{Binding DamageLevel,Converter={StaticResource DamageLevelToColorConverter}}"
                                               FontSize="24" Margin="15,0,0,0"
                                               VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                </UniformGrid>
                            </Border>
                        </DataTemplate>
                    </ItemsControl.ItemTemplate>
                </ItemsControl>
            </ScrollViewer>
        </StackPanel>
    </Border>
</pu:WindowX>
