PeersPage.xaml 1.6 KB

123456789101112131415161718192021222324252627
  1. <UserControl x:Class="WinUI.PeersPage"
  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. mc:Ignorable="d"
  7. d:DesignHeight="300" d:DesignWidth="300" Background="White" Foreground="Black">
  8. <DataGrid x:Name="dataGrid" GridLinesVisibility="None" AutoGenerateColumns="False" CanUserResizeColumns="True" Margin="0,0,0,0" CanUserReorderColumns="False" HorizontalAlignment="Stretch" VerticalScrollBarVisibility="Auto" CanUserSortColumns="False">
  9. <DataGrid.CellStyle>
  10. <Style TargetType="DataGridCell">
  11. <Setter Property="BorderThickness" Value="0"/>
  12. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  13. </Style>
  14. </DataGrid.CellStyle>
  15. <DataGrid.Columns>
  16. <DataGridTextColumn Header="Address" Binding="{Binding Address}"/>
  17. <DataGridTextColumn Header="Version" Binding="{Binding VersionString}"/>
  18. <DataGridTextColumn Header="Latency" Binding="{Binding Latency}"/>
  19. <DataGridTextColumn Header="Data Paths" Binding="{Binding DataPaths}"/>
  20. <DataGridTextColumn Header="Last Unicast" Binding="{Binding LastUnicastFrame}"/>
  21. <DataGridTextColumn Header="Last Multicast" Binding="{Binding LastMulticastFrame}"/>
  22. <DataGridTextColumn Width="*" Header="Role" Binding="{Binding Role}"/>
  23. </DataGrid.Columns>
  24. </DataGrid>
  25. </UserControl>