AlarmView.xaml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <UserControl x:Class="VirgoUI.Client.Models.Operate.Alarm.AlarmView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
  7. xmlns:cal="http://www.caliburn.org"
  8. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  9. mc:Ignorable="d" IsEnabled="{Binding PageEnabled}"
  10. d:DesignHeight="800" d:DesignWidth="1200">
  11. <Grid>
  12. <Grid.ColumnDefinitions>
  13. <ColumnDefinition Width="7*" />
  14. <ColumnDefinition Width="5*" />
  15. </Grid.ColumnDefinitions>
  16. <GroupBox Header="Alarm List" Margin="5,0,12,5">
  17. <DataGrid AutoGenerateColumns="False" Margin="5" Name="eventList" Background="White" ItemsSource="{Binding AlarmEvents, Mode=OneWay}" SelectionMode="Single" SelectionUnit="FullRow"
  18. FontFamily="Arial,SimSun" FontSize="13" SelectionChanged="listView1_SelectionChanged" BorderThickness="0.1" CanUserDeleteRows="True" CanUserAddRows="True" IsReadOnly="True" RowHeight="25">
  19. <DataGrid.Columns>
  20. <DataGridTemplateColumn Header="Type" Width="90" CanUserSort="True" SortMemberPath="Type">
  21. <DataGridTemplateColumn.CellTemplate>
  22. <DataTemplate>
  23. <Label Content="{Binding Type}" Background="{Binding TextColor}" FontSize="12"/>
  24. </DataTemplate>
  25. </DataGridTemplateColumn.CellTemplate>
  26. </DataGridTemplateColumn>
  27. <DataGridTextColumn Header="Time" Width="80" CanUserSort="True" IsReadOnly="True" Binding="{Binding OccuringTime,Mode=OneWay}">
  28. </DataGridTextColumn>
  29. <DataGridTextColumn Header="Description" Width="*" CanUserSort="True" IsReadOnly="True" Binding="{Binding Description,Mode=OneWay}">
  30. </DataGridTextColumn>
  31. </DataGrid.Columns>
  32. </DataGrid>
  33. </GroupBox>
  34. <GroupBox Grid.Column="1" Header="Detail" Margin="0,0,5,5">
  35. <TextBlock x:Name="AnalysisText" FontSize="14" Margin="5" Background="White" TextWrapping="Wrap" Style="{x:Null}"/>
  36. </GroupBox>
  37. </Grid>
  38. </UserControl>