Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Page
- x:Class="GUISender.MainPage"
- 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:interactivity="using:Microsoft.Xaml.Interactivity"
- xmlns:core="using:Microsoft.Xaml.Interactions.Core"
- mc:Ignorable="d"
- Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" HorizontalAlignment="Center" Width="800" Height="471">
- <Grid HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Center" RenderTransformOrigin="0.664,0.511" Width="800" Height="480" Background="#1B1B1E" Visibility="Visible">
- <Grid.RowDefinitions>
- <RowDefinition Height="17*"/>
- <RowDefinition Height="463*"/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="49*"/>
- <ColumnDefinition Width="42*"/>
- <ColumnDefinition Width="709*"/>
- <ColumnDefinition Width="0*"/>
- </Grid.ColumnDefinitions>
- <Rectangle HorizontalAlignment="Left" Height="63" Margin="7,0,0,381" VerticalAlignment="Bottom" Width="187" FocusVisualPrimaryBrush="#FF0B6497" FocusVisualSecondaryBrush="#00000000" Fill="#FF094EA2" Grid.Row="1" Grid.ColumnSpan="3"></Rectangle>
- <TextBlock x:Name="txtSelected" HorizontalAlignment="Left" Text="Home" TextWrapping="Wrap" VerticalAlignment="Top" Height="32" Width="169" Margin="15,35,0,0" Foreground="#FFE2E3EA" FontSize="20" FocusVisualSecondaryBrush="#99FFFFFF" Grid.Row="1" Grid.ColumnSpan="3" FontFamily="Microsoft JhengHei Light" />
- <Rectangle HorizontalAlignment="Left" Height="434" Margin="123,19,0,0" Grid.Row="1" VerticalAlignment="Top" Width="571" Fill="#FFD4DBEC" Grid.Column="2"/>
- <TextBlock x:Name="TxtTitle" HorizontalAlignment="Left" Margin="156,25,0,0" Text="Benvenuto su JamesLog!" TextWrapping="Wrap" VerticalAlignment="Top" Height="64" Width="504" FontSize="24" Foreground="Black" Grid.Row="1" Grid.Column="2" FontFamily="Microsoft JhengHei UI"/>
- <ListView x:Name="LstvList" HorizontalAlignment="Left" Height="366" Margin="7,87,0,0" Grid.Row="1" VerticalAlignment="Top" Width="187" IsMultiSelectCheckBoxEnabled="False" Background="#FF283759" Grid.ColumnSpan="3" FontFamily="Microsoft JhengHei UI" ItemClick="LstvList_ItemClick" IsItemClickEnabled="True" >
- </ListView>
- <AppBarButton x:Name="ApbtnSettings" HorizontalAlignment="Left" Icon="Setting" Label="" Margin="668,0,0,444" VerticalAlignment="Bottom" Height="40" Width="32" Content="" Click="ApbtnSettings_Click" RenderTransformOrigin="0.64,1.09" UseLayoutRounding="False" d:LayoutRounding="Auto" Grid.RowSpan="2" Foreground="#FF3670D6" Grid.Column="2">
- <AppBarButton.RenderTransform>
- <CompositeTransform SkewY="0.521" TranslateY="-0.425"/>
- </AppBarButton.RenderTransform>
- </AppBarButton>
- <Border x:Name="BrdBody" Margin="138,87,0,26" Grid.Row="1" BorderThickness="2,2,2,2" Grid.Column="2" FocusVisualPrimaryBrush="Black" IsDoubleTapEnabled="False" IsHoldingEnabled="False" IsRightTapEnabled="False" IsTapEnabled="False" AllowFocusOnInteraction="False" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
- <ListView x:Name="LstHomePackets" ItemsSource="{Binding Packets}" SelectionMode="None" IsItemClickEnabled="False" HorizontalAlignment="Left" Margin="16,45,0,0" VerticalAlignment="Top" ScrollViewer.VerticalScrollBarVisibility="Visible" Background="#FFEAEFF1" BorderBrush="Black" Width="505" Height="293" VirtualizingStackPanel.VirtualizationMode="Recycling" >
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid Height="40" Width="517" HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" BorderBrush="#FFA0A9C1" BorderThickness="0,0,0,1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="2.5*"/>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="2*"/>
- </Grid.ColumnDefinitions>
- <TextBlock HorizontalAlignment="Center" Foreground="Black" FontSize="25" AllowDrop="True" VerticalAlignment="Center" FontFamily="Segoe MDL2 Assets">
- <interactivity:Interaction.Behaviors>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="0">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Red" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="1">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Orange" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="2">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Red" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="3">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Red" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="4">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Orange" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="5">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Blue" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="6">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Blue" />
- </core:DataTriggerBehavior>
- <core:DataTriggerBehavior Binding="{Binding Severity}" Value="7">
- <core:ChangePropertyAction PropertyName="Text" Value="" />
- <core:ChangePropertyAction PropertyName="Foreground" Value="Blue" />
- </core:DataTriggerBehavior>
- </interactivity:Interaction.Behaviors>
- </TextBlock>
- <TextBlock Grid.Column="1" HorizontalAlignment="Center" Text="{Binding Date}" Foreground="Black" FontSize="15" VerticalAlignment="Center" FontFamily="Microsoft JhengHei UI"/>
- <TextBlock Grid.Column="2" HorizontalAlignment="Center" Text="{Binding Hostname}" Foreground="Black" FontSize="15" VerticalAlignment="Center" FontFamily="Microsoft JhengHei UI"/>
- <TextBlock Grid.Column="3" HorizontalAlignment="Center" Text="{Binding Appname}" Foreground="Black" FontSize="15" VerticalAlignment="Center" FontFamily="Microsoft JhengHei UI"/>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Border>
- <Grid Height="36" Width="505" HorizontalAlignment="Left" Margin="156,98,0,0" VerticalAlignment="Top" Grid.Column="2" Grid.Row="1" Background="#FF094EA2" BorderBrush="Black" BorderThickness="0,0,0,1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="1*"/>
- <ColumnDefinition Width="2.5*"/>
- <ColumnDefinition Width="2*"/>
- <ColumnDefinition Width="2*"/>
- </Grid.ColumnDefinitions>
- <TextBlock HorizontalAlignment="Center" Text="Tipo" Foreground="White" FontSize="15" AllowDrop="True" FontWeight="Bold" Margin="0,6,0,0" VerticalAlignment="Top" FontFamily="Microsoft JhengHei UI" FocusVisualPrimaryBrush="White"/>
- <TextBlock Grid.Column="1" HorizontalAlignment="Center" Text="Data" Foreground="White" FontSize="15" FontWeight="Bold" Margin="0,6,0,0" VerticalAlignment="Top" FontFamily="Microsoft JhengHei UI"/>
- <TextBlock Grid.Column="2" HorizontalAlignment="Center" Text="Hostname" Foreground="White" FontSize="15" FontWeight="Bold" Margin="0,6,0,0" VerticalAlignment="Top" FontFamily="Microsoft JhengHei UI"/>
- <TextBlock Grid.Column="3" HorizontalAlignment="Center" Text="Appname" Foreground="White" FontSize="15" FontWeight="Bold" Margin="0,6,0,0" VerticalAlignment="Top" FontFamily="Microsoft JhengHei UI"/>
- </Grid>
- <AppBarButton x:Name="ApbtnPlay" HorizontalAlignment="Left" Icon="Play" Label="" Margin="21,-4,0,0" VerticalAlignment="Top" Foreground="#FF3670D6" Height="40" Width="36" Grid.RowSpan="2" Click="ApbtnPlay_Click" Grid.Column="1" Grid.ColumnSpan="2" />
- <AppBarButton x:Name="ApbtnPause" HorizontalAlignment="Left" Icon="Pause" Label="" Margin="25,-6,0,0" VerticalAlignment="Top" Foreground="#FF3670D6" Height="42" Width="32" Grid.RowSpan="2" Click="ApbtnPause_Click" Grid.Column="1" Grid.ColumnSpan="2" Visibility="Collapsed" IsEnabled="False" />
- <AppBarButton x:Name="ApbtnHome" HorizontalAlignment="Left" Icon="Home" Label="" Margin="0,-4,0,0" VerticalAlignment="Top" Foreground="#FF3670D6" Height="40" Width="34" Grid.RowSpan="2" IsEnabled="False" Click="ApbtnHome_Click" RenderTransformOrigin="0.5,0.5" UseLayoutRounding="False" d:LayoutRounding="Auto" >
- <AppBarButton.RenderTransform>
- <CompositeTransform SkewY="0.211" TranslateY="0.059"/>
- </AppBarButton.RenderTransform>
- </AppBarButton>
- <AppBarButton x:Name="ApbtnConsole" HorizontalAlignment="Left" Label="" Margin="34,-4,0,0" VerticalAlignment="Top" Foreground="#FF3670D6" Height="40" Width="36" Grid.RowSpan="2" Click="ApbtnConsole_Click" IsEnabled="False" Grid.ColumnSpan="2">
- <AppBarButton.Icon>
- <FontIcon FontFamily="Segoe MDL2 Assets" Glyph=""/>
- </AppBarButton.Icon>
- </AppBarButton>
- <RelativePanel x:Name="RpConsole" Margin="7,19,15,10" Grid.Row="1" BorderThickness="0,0,0,0" Background="Black" Grid.ColumnSpan="3" Visibility="Collapsed" >
- <ScrollViewer x:Name="SvrScroll" Width="Auto" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" Height="421" VerticalScrollMode="Enabled">
- <TextBlock x:Name="TxtConsole" HorizontalAlignment="Left" Margin="10,10,0,0" Text="" TextWrapping="Wrap" VerticalAlignment="Top" Width="747" Foreground="White" MaxLines="40" FontFamily="Consolas" />
- </ScrollViewer>
- </RelativePanel>
- <RelativePanel x:Name="RpConfig" Height="480" Width="800" Margin="-4,0,0,0" Grid.RowSpan="2" Grid.ColumnSpan="3" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Center">
- <RelativePanel.Background>#FF1B1B1E</RelativePanel.Background>
- <Rectangle HorizontalAlignment="Left" Height="433" Margin="35,21,0,0" VerticalAlignment="Top" Width="726" Fill="#FFD4DBEC" Grid.RowSpan="2"/>
- <AppBarButton x:Name="ApbtAdvConfig" HorizontalAlignment="Left" Label="" Margin="716,22,0,0" VerticalAlignment="Top" Foreground="#FF3670D6" Height="42" Width="45" Grid.RowSpan="2" IsEnabled="True" Grid.ColumnSpan="2" Click="ApbtAdvConfig_Click">
- <AppBarButton.Icon>
- <FontIcon FontFamily="Segoe MDL2 Assets" Glyph=""/>
- </AppBarButton.Icon>
- </AppBarButton>
- <TextBox x:Name="TxtDispositivo" HorizontalAlignment="Left" Margin="84,96,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25" Background="White" Foreground="Black" />
- <Button x:Name="BtnConfirm" Content="Conferma" HorizontalAlignment="Left" Margin="425,309,0,0" VerticalAlignment="Top" Height="50" Width="157" IsEnabled="True" Background="#FF186DC3" FontSize="20" Foreground="Black" Click="BtnConfirm_Click_1"/>
- <TextBox x:Name="TxtAzienda" HorizontalAlignment="Left" Margin="84,170,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
- <TextBlock HorizontalAlignment="Left" Margin="84,34,0,0" Text="Configurazione" TextWrapping="Wrap" VerticalAlignment="Top" Width="256" Height="36" FontSize="27
- " Foreground="#FF1F8CFA" FontFamily="Microsoft JhengHei UI" />
- <TextBlock HorizontalAlignment="Left" Margin="84,64,0,0" Text="Nome Dispositivo:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- <TextBlock HorizontalAlignment="Left" Margin="84,143,0,0" Text="Azienda:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- <TextBox x:Name="TxtEndpoint" HorizontalAlignment="Left" Margin="84,240,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
- <TextBlock HorizontalAlignment="Left" Margin="84,208,0,0" Text="Endpoint:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- <TextBox x:Name="TxtUser" HorizontalAlignment="Left" Margin="425,170,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
- <TextBlock HorizontalAlignment="Left" Margin="425,138,0,0" Text="Username:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- <TextBlock HorizontalAlignment="Left" Margin="425,209,0,0" Text="Password:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- <AppBarButton x:Name="ApbtnCloseConfig" HorizontalAlignment="Left" Icon="Cancel" Label="" Margin="763,0,0,8" VerticalAlignment="Bottom" Width="36" Foreground="#FF3670D6" Visibility="Visible" RenderTransformOrigin="0.5,0.5" Height="39" UseLayoutRounding="False" d:LayoutRounding="Auto" Click="ApbtnCloseConfig_Click" IsEnabled="False" >
- <AppBarButton.RenderTransform>
- <CompositeTransform SkewX="-0.231" TranslateX="0.121"/>
- </AppBarButton.RenderTransform>
- </AppBarButton>
- <TextBox x:Name="TxtIp" HorizontalAlignment="Left" Margin="84,316,0,0" Text="" TextWrapping="Wrap" VerticalAlignment="Top" Height="43" Width="236" FontSize="20" Foreground="Black" Background="White" IsReadOnly="True" IsEnabled="False"/>
- <TextBlock HorizontalAlignment="Left" Margin="84,284,0,0" Text="Local IP:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- <PasswordBox x:Name="PswPassword" HorizontalAlignment="Left" Height="43" Margin="425,240,0,0" VerticalAlignment="Top" Width="235" Background="#FFFFFFFF" FontSize="20" PasswordRevealMode="Peek" Foreground="Black" />
- <TextBlock x:Name="TxtError" HorizontalAlignment="Left" Margin="83,362,0,0" Text="Riempire tutti i campi" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="24" Foreground="Red" Height="69" Width="522" Visibility="Collapsed"/>
- <TextBox x:Name="TxtEndpointAccess" HorizontalAlignment="Left" Margin="425,96,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
- <TextBlock HorizontalAlignment="Left" Margin="425,64,0,0" Text="Endpoint access:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
- </RelativePanel>
- <RelativePanel x:Name="RpAdvConfig" Height="480" Width="800" Margin="-4,0,0,0" Grid.RowSpan="2" Grid.ColumnSpan="3" Visibility="Collapsed" HorizontalAlignment="Left" VerticalAlignment="Center" Background="#4C000000">
- <Rectangle Margin="210,37,0,-437" HorizontalAlignment="Left" Width="342" Fill="#FF1B1B1E" VerticalAlignment="Stretch"/>
- <Rectangle Margin="215,69,0,-432" HorizontalAlignment="Left" Width="333" Fill="#FFD4DBEC" VerticalAlignment="Stretch"/>
- <TextBlock HorizontalAlignment="Left" Height="37" Margin="238,82,0,0" Text="Impostazioni avanzate" TextWrapping="Wrap" VerticalAlignment="Top" Width="267" FontSize="22" Foreground="#FF1F8CFA" />
- <AppBarButton x:Name="ApbtnCloseAdvConfig" HorizontalAlignment="Left" Icon="Cancel" Label="" Margin="512,0,0,-69" VerticalAlignment="Bottom" Width="36" Foreground="#FF3670D6" RenderTransformOrigin="0.5,0.5" Height="37" UseLayoutRounding="False" d:LayoutRounding="Auto" IsEnabled="True" Click="ApbtnCloseAdvConfig_Click" />
- <TextBox HorizontalAlignment="Left" Height="40" Margin="238,160,0,0" Text="514" VerticalAlignment="Top" Width="241" FontSize="20" Background="White" Foreground="Black"/>
- <TextBlock HorizontalAlignment="Left" Height="25" Margin="238,128,0,0" Text="Porta" TextWrapping="Wrap" VerticalAlignment="Top" Width="139" FontSize="20" TextDecorations="Underline" Foreground="Black"/>
- <TextBlock HorizontalAlignment="Left" Height="25" Margin="238,227,0,0" Text="Tempo di Salvataggio" TextWrapping="Wrap" VerticalAlignment="Top" Width="278" FontSize="20" TextDecorations="Underline" Foreground="Black"/>
- <TextBlock HorizontalAlignment="Left" Height="36" Margin="238,310,0,0" Text="Durata pacchetto" TextWrapping="Wrap" VerticalAlignment="Top" Width="244" FontSize="20" TextDecorations="Underline" Foreground="Black"/>
- <Slider x:Name="SldrSaveTime" Maximum="30" TickPlacement="BottomRight" TickFrequency="5" Margin="238,261,-479,-261" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ValueChanged="SldrSaveTime_ValueChanged" Background="DimGray" />
- <Slider x:Name="SldrPacketTime" Margin="238,353,-479,-353" Maximum="180" TickFrequency="30" TickPlacement="BottomRight" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ValueChanged="SldrPacketTime_ValueChanged" Background="DimGray"/>
- <TextBlock x:Name="TxtPacketTime" Margin="491,359,-539,-387" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="" Foreground="Black"/>
- <TextBlock x:Name="TxtSaveTime" Margin="491,263,-539,-291" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="" Foreground="Black"/>
- </RelativePanel>
- </Grid>
- </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement