EonaCat.Port.Monitor/EonaCat.PortMonitor/ConnectionDetailsWindow.xaml

82 lines
6.0 KiB
XML

<Window x:Class="EonaCat.PortMonitor.ConnectionDetailsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Connection Details"
Height="430" Width="400"
ResizeMode="NoResize"
ShowInTaskbar="False"
WindowStyle="SingleBorderWindow"
WindowStartupLocation="CenterScreen">
<Window.Resources>
<!-- Dynamic Resource for the theme -->
<ResourceDictionary Source="/Themes.xaml" />
</Window.Resources>
<Grid Margin="10">
<!-- Main Content Area -->
<Border Background="{DynamicResource DynamicBackgroundColor}" CornerRadius="10" BorderBrush="#DCDCDC" BorderThickness="1" Padding="10">
<Grid>
<!-- Define Rows and Columns -->
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition Width="20"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<!-- Title -->
<TextBlock Text="Connection Details" FontSize="20" FontWeight="Bold" Foreground="{DynamicResource DynamicTextColor}" HorizontalAlignment="Center" Grid.Row="0" Grid.ColumnSpan="2" Margin="0,0,0,10"/>
<!-- Protocol -->
<TextBlock Text="Protocol:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="1" Grid.Column="0" Margin="0,5"/>
<TextBox Name="ProtocolText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="1" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Local Address -->
<TextBlock Text="Local Address:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="2" Grid.Column="0" Margin="0,5"/>
<TextBox Name="LocalAddressText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="2" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Local Port -->
<TextBlock Text="Local Port:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="3" Grid.Column="0" Margin="0,5"/>
<TextBox Name="LocalPortText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="3" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Remote Address -->
<TextBlock Text="Remote Address:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="4" Grid.Column="0" Margin="0,5"/>
<TextBox Name="RemoteAddressText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="4" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Remote Port -->
<TextBlock Text="Remote Port:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="5" Grid.Column="0" Margin="0,5"/>
<TextBox Name="RemotePortText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="5" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- State -->
<TextBlock Text="State:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="6" Grid.Column="0" Margin="0,5"/>
<TextBox Name="StateText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="6" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Process Name -->
<TextBlock Text="Process Name:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="7" Grid.Column="0" Margin="0,5"/>
<TextBox Name="ProcessNameText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="7" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Process Id -->
<TextBlock Text="Process Id:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="8" Grid.Column="0" Margin="0,5"/>
<TextBox Name="ProcessIdText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="8" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
<!-- Connection duration -->
<TextBlock Text="Connection duration:" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="9" Grid.Column="0" Margin="0,5"/>
<TextBox Name="ConnectionDurationText" FontSize="14" Foreground="{DynamicResource DynamicTextColor}" VerticalAlignment="Center" Grid.Row="9" Grid.Column="2" Margin="0,5" IsReadOnly="True" Background="Transparent" BorderBrush="Transparent"/>
</Grid>
</Border>
</Grid>
</Window>