MainWindow.xaml 4.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <Window
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Class="WinUI.MainWindow"
  5. Title="ZeroTier One" Height="495" Width="705" Icon="ZeroTierIcon.ico">
  6. <Window.Resources>
  7. <ResourceDictionary>
  8. <Style TargetType="{x:Type TabItem}">
  9. <Setter Property="BorderThickness"
  10. Value="3" />
  11. <Setter Property="BorderBrush"
  12. Value="Blue" />
  13. <Setter Property="VerticalContentAlignment"
  14. Value="Center" />
  15. <Setter Property="HorizontalContentAlignment"
  16. Value="Center" />
  17. <Setter Property="Template">
  18. <Setter.Value>
  19. <ControlTemplate TargetType="{x:Type TabItem}">
  20. <Border>
  21. <Grid>
  22. <Grid>
  23. <Border x:Name="border"
  24. CornerRadius="3,3,0,0"
  25. Background="{TemplateBinding Background}"
  26. BorderBrush="{TemplateBinding BorderBrush}"
  27. BorderThickness="1,1,1,0" />
  28. </Grid>
  29. <Border BorderThickness="{TemplateBinding BorderThickness}"
  30. Padding="{TemplateBinding Padding}">
  31. <ContentPresenter ContentSource="Header"
  32. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  33. VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  34. </Border>
  35. </Grid>
  36. </Border>
  37. <ControlTemplate.Triggers>
  38. <Trigger Property="IsSelected"
  39. Value="True">
  40. <Setter TargetName="border"
  41. Property="BorderBrush"
  42. Value="#ff91a2a3" />
  43. <Setter TargetName="border"
  44. Property="BorderThickness"
  45. Value="0,3,0,0" />
  46. </Trigger>
  47. </ControlTemplate.Triggers>
  48. </ControlTemplate>
  49. </Setter.Value>
  50. </Setter>
  51. </Style>
  52. </ResourceDictionary>
  53. </Window.Resources>
  54. <DockPanel>
  55. <StatusBar DockPanel.Dock="Bottom" Height="34" Background="#FF234447" Margin="0">
  56. <StatusBar.ItemsPanel>
  57. <ItemsPanelTemplate>
  58. <Grid>
  59. <Grid.RowDefinitions>
  60. <RowDefinition Height="*"/>
  61. </Grid.RowDefinitions>
  62. <Grid.ColumnDefinitions>
  63. <ColumnDefinition Width="Auto"/>
  64. <ColumnDefinition Width="Auto"/>
  65. <ColumnDefinition Width="Auto"/>
  66. <ColumnDefinition Width="*"/>
  67. <ColumnDefinition Width="Auto"/>
  68. <ColumnDefinition Width="Auto"/>
  69. </Grid.ColumnDefinitions>
  70. </Grid>
  71. </ItemsPanelTemplate>
  72. </StatusBar.ItemsPanel>
  73. <StatusBarItem Grid.Column="0" x:Name="networkId" Content="Network ID" Foreground="White"/>
  74. <StatusBarItem Grid.Column="1" x:Name="onlineStatus" Content="ONLINE" Foreground="White"/>
  75. <StatusBarItem Grid.Column="2" x:Name="versionString" Content="1.0.5" Foreground="White" Margin="0"/>
  76. <StatusBarItem Grid.Column="3" x:Name="blank" Content="" Height="43" Foreground="White" Margin="6,0,-6,-9"/>
  77. <StatusBarItem Grid.Column="4">
  78. <TextBox x:Name="joinNetworkID" Height="23" TextWrapping="Wrap" Width="120" HorizontalAlignment="Right" RenderTransformOrigin="1.168,0.478" ToolTip="Enter Network ID"/>
  79. </StatusBarItem>
  80. <StatusBarItem Grid.Column="5" x:Name="statusBarButton" Foreground="White" RenderTransformOrigin="0.789,0.442">
  81. <Button x:Name="joinButton" Content="Join" Background="#FFFFB354" Width="77.423"/>
  82. </StatusBarItem>
  83. </StatusBar>
  84. <TabControl>
  85. <TabItem x:Name="Networks" Header="Networks" Background="#FF234447" Foreground="White" IsSelected="True" IsManipulationEnabled="True">
  86. <Grid Background="#FFE5E5E5"/>
  87. </TabItem>
  88. <TabItem x:Name="Peers" Header="Peers" Background="#FF234447" Foreground="White">
  89. <Grid Background="#FFE5E5E5"/>
  90. </TabItem>
  91. </TabControl>
  92. </DockPanel>
  93. </Window>