diff options
| author | Adam Ierymenko <adam.ierymenko@zerotier.com> | 2018-04-25 06:39:02 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-25 06:39:02 -0700 |
| commit | 42ec780a6f6eedef4d8b1d8218bd72fc6ed75cc0 (patch) | |
| tree | 7bf86c4d92d6a0f77eced79bfc33313c62c7b6dd /windows/WinUI/NetworkListView.xaml | |
| parent | 18c9dc8a0649c866eff9f299f20fa5b19c502e52 (diff) | |
| parent | 4608880fb06700822d01e9e5d6729fcdeb82b64b (diff) | |
| download | infinitytier-42ec780a6f6eedef4d8b1d8218bd72fc6ed75cc0.tar.gz infinitytier-42ec780a6f6eedef4d8b1d8218bd72fc6ed75cc0.zip | |
Merge branch 'dev' into netbsd-support
Diffstat (limited to 'windows/WinUI/NetworkListView.xaml')
| -rw-r--r-- | windows/WinUI/NetworkListView.xaml | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/windows/WinUI/NetworkListView.xaml b/windows/WinUI/NetworkListView.xaml new file mode 100644 index 00000000..1dc774b7 --- /dev/null +++ b/windows/WinUI/NetworkListView.xaml @@ -0,0 +1,88 @@ +<Window + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + 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.NetworkListView" + Title="ZeroTier One" SizeToContent="Width" Height="500" Width="Auto" Icon="ZeroTierIcon.ico"> + + <Window.Resources> + <SolidColorBrush x:Key="GreenBrush" Color="#ff91a2a3"/> + + <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" /> + + <Style TargetType="{x:Type DataGrid}"> + <Setter Property="Background" Value="#FFF" /> + <Setter Property="AlternationCount" Value="2" /> + </Style> + + <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> + + <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> + <Grid Background="LightGray" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"> + <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"/> + </Grid> + </DockPanel> +</Window> |
