2015-10-20 03:20:42 +00:00
|
|
|
<Window
|
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
2015-10-22 03:29:03 +00:00
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
|
xmlns:local="clr-namespace:WinUI"
|
|
|
|
mc:Ignorable="d" x:Class="WinUI.MainWindow"
|
2015-11-13 01:38:30 +00:00
|
|
|
Title="ZeroTier One" Height="500" Width="425" Icon="ZeroTierIcon.ico">
|
2015-10-20 03:20:42 +00:00
|
|
|
|
2015-11-05 02:39:45 +00:00
|
|
|
<Window.Resources>
|
|
|
|
<SolidColorBrush x:Key="GreenBrush" Color="#ff91a2a3"/>
|
2015-10-20 03:20:42 +00:00
|
|
|
|
2015-11-05 02:39:45 +00:00
|
|
|
<SolidColorBrush x:Key="SolidBorderBrush" Color="#888" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="GreenDisabledBrush" Color="#FF234447" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="DisabledBackgroundBrush" Color="#EEE" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="DisabledBorderBrush" Color="#AAA" />
|
|
|
|
|
|
|
|
<SolidColorBrush x:Key="DisabledForegroundBrush" Color="#888" />
|
2015-11-05 04:03:25 +00:00
|
|
|
|
|
|
|
<Style TargetType="{x:Type DataGrid}">
|
|
|
|
<Setter Property="Background" Value="#FFF" />
|
|
|
|
<Setter Property="AlternationCount" Value="2" />
|
|
|
|
</Style>
|
2015-11-05 02:39:45 +00:00
|
|
|
|
2015-11-05 04:03:25 +00:00
|
|
|
<Style TargetType="{x:Type DataGridRow}">
|
|
|
|
<Style.Triggers>
|
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="0">
|
|
|
|
<Setter Property="Background" Value="#EEE"></Setter>
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
|
|
|
<Setter Property="Background" Value="#FFF"></Setter>
|
|
|
|
</Trigger>
|
|
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
|
2015-11-05 02:39:45 +00:00
|
|
|
<Style TargetType="{x:Type TabItem}">
|
|
|
|
<Setter Property="Template">
|
|
|
|
<Setter.Value>
|
|
|
|
<ControlTemplate TargetType="{x:Type TabItem}">
|
|
|
|
<Grid>
|
|
|
|
<Border
|
|
|
|
Name="Border"
|
|
|
|
Margin="0,0,-4,0"
|
|
|
|
Background="{StaticResource GreenBrush}"
|
|
|
|
BorderBrush="{StaticResource SolidBorderBrush}"
|
|
|
|
BorderThickness="1,1,1,1"
|
|
|
|
CornerRadius="2,12,0,0" >
|
|
|
|
<ContentPresenter x:Name="ContentSite"
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
HorizontalAlignment="Center"
|
|
|
|
ContentSource="Header"
|
|
|
|
Margin="12,2,12,2"
|
|
|
|
RecognizesAccessKey="True"/>
|
|
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
<Setter Property="Panel.ZIndex" Value="100" />
|
|
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource GreenDisabledBrush}" />
|
|
|
|
<Setter TargetName="Border" Property="BorderThickness" Value="1,1,1,0" />
|
|
|
|
</Trigger>
|
|
|
|
<Trigger Property="IsEnabled" Value="False">
|
|
|
|
<Setter TargetName="Border" Property="Background" Value="{StaticResource DisabledBackgroundBrush}" />
|
|
|
|
<Setter TargetName="Border" Property="BorderBrush" Value="{StaticResource DisabledBorderBrush}" />
|
|
|
|
<Setter Property="Foreground" Value="{StaticResource DisabledForegroundBrush}" />
|
|
|
|
</Trigger>
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
</ControlTemplate>
|
|
|
|
</Setter.Value>
|
|
|
|
</Setter>
|
|
|
|
</Style>
|
|
|
|
</Window.Resources>
|
|
|
|
|
|
|
|
<DockPanel>
|
2015-11-13 01:38:30 +00:00
|
|
|
<StatusBar DockPanel.Dock="Bottom" Height="26" Background="#FF234447" Margin="0">
|
2015-10-20 03:20:42 +00:00
|
|
|
<StatusBar.ItemsPanel>
|
|
|
|
<ItemsPanelTemplate>
|
|
|
|
<Grid>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
<ColumnDefinition Width="Auto"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
</Grid>
|
|
|
|
</ItemsPanelTemplate>
|
|
|
|
</StatusBar.ItemsPanel>
|
2015-11-13 01:38:30 +00:00
|
|
|
<StatusBarItem Grid.Column="0" x:Name="networkId" Content="deadbeef00" Foreground="White" FontFamily="Lucida Console"/>
|
|
|
|
<StatusBarItem Grid.Column="1" x:Name="onlineStatus" Content="ONLINE" Foreground="White" FontFamily="Lucida Console"/>
|
|
|
|
<StatusBarItem Grid.Column="2" x:Name="versionString" Content="1.0.5" Foreground="White" FontFamily="Lucida Console"/>
|
2015-11-05 04:31:41 +00:00
|
|
|
<StatusBarItem Grid.Column="3" x:Name="blank" Content="" Height="43" Foreground="White"/>
|
2015-10-20 03:20:42 +00:00
|
|
|
<StatusBarItem Grid.Column="4">
|
2015-11-13 01:38:30 +00:00
|
|
|
<TextBox x:Name="joinNetworkID" TextWrapping="Wrap" Width="140" HorizontalAlignment="Right" ToolTip="Enter Network ID" PreviewTextInput="OnNetworkEntered" MaxLength="16" FontFamily="Lucida Console" FontSize="12" BorderThickness="1"/>
|
2015-10-20 03:20:42 +00:00
|
|
|
</StatusBarItem>
|
|
|
|
<StatusBarItem Grid.Column="5" x:Name="statusBarButton" Foreground="White" RenderTransformOrigin="0.789,0.442">
|
2015-11-13 01:38:30 +00:00
|
|
|
<Button x:Name="joinButton" Content="Join" Background="#FFFFB354" Width="76" Click="joinButton_Click"/>
|
2015-10-20 03:20:42 +00:00
|
|
|
</StatusBarItem>
|
|
|
|
</StatusBar>
|
2015-11-13 01:38:30 +00:00
|
|
|
<!--<TabControl Margin="0,0,0,0">
|
|
|
|
<TabItem x:Name="Networks" Header="Networks" Foreground="White" IsSelected="True" IsManipulationEnabled="True">-->
|
|
|
|
<Grid Background="LightGray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
|
2015-10-22 03:40:43 +00:00
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<local:NetworksPage x:Name="networksPage" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="0" Grid.Row="0" Margin="0,0,0,0"/>
|
2015-10-22 03:29:03 +00:00
|
|
|
</Grid>
|
2015-11-13 01:38:30 +00:00
|
|
|
<!--</TabItem>-->
|
2015-11-06 03:39:17 +00:00
|
|
|
<!--<TabItem x:Name="Peers" Header="Peers" Foreground="White">
|
2015-10-27 02:39:54 +00:00
|
|
|
<Grid Background="#FFE5E5E5" HorizontalAlignment="Left" VerticalAlignment="Top">
|
|
|
|
<Grid.ColumnDefinitions>
|
|
|
|
<ColumnDefinition Width="*"/>
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
<RowDefinition Height="*"/>
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
<local:PeersPage x:Name="peersPage" HorizontalAlignment="Left" VerticalAlignment="Top" Grid.Column="0" Grid.Row="0"/>
|
2015-10-27 02:21:21 +00:00
|
|
|
</Grid>
|
2015-11-06 03:39:17 +00:00
|
|
|
</TabItem>-->
|
2015-11-13 01:38:30 +00:00
|
|
|
<!--</TabControl>-->
|
2015-10-20 03:20:42 +00:00
|
|
|
</DockPanel>
|
|
|
|
</Window>
|