Advertisement
Guest User

Untitled

a guest
Jun 29th, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.40 KB | None | 0 0
  1. <Page
  2. x:Class="GUISender.MainPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
  8. xmlns:core="using:Microsoft.Xaml.Interactions.Core"
  9.  
  10. mc:Ignorable="d"
  11. Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" HorizontalAlignment="Center" Width="800" Height="471">
  12.  
  13. <Grid HorizontalAlignment="Left" Margin="5,0,0,0" VerticalAlignment="Center" RenderTransformOrigin="0.664,0.511" Width="800" Height="480" Background="#1B1B1E" Visibility="Visible">
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="17*"/>
  16. <RowDefinition Height="463*"/>
  17. </Grid.RowDefinitions>
  18. <Grid.ColumnDefinitions>
  19.  
  20. <ColumnDefinition Width="49*"/>
  21. <ColumnDefinition Width="42*"/>
  22. <ColumnDefinition Width="709*"/>
  23. <ColumnDefinition Width="0*"/>
  24.  
  25.  
  26. </Grid.ColumnDefinitions>
  27.  
  28. <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>
  29. <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" />
  30. <Rectangle HorizontalAlignment="Left" Height="434" Margin="123,19,0,0" Grid.Row="1" VerticalAlignment="Top" Width="571" Fill="#FFD4DBEC" Grid.Column="2"/>
  31. <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"/>
  32. <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" >
  33.  
  34. </ListView>
  35. <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">
  36. <AppBarButton.RenderTransform>
  37. <CompositeTransform SkewY="0.521" TranslateY="-0.425"/>
  38. </AppBarButton.RenderTransform>
  39. </AppBarButton>
  40.  
  41. <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" >
  42. <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" >
  43. <ListView.ItemTemplate>
  44. <DataTemplate>
  45. <Grid Height="40" Width="517" HorizontalAlignment="Center" Margin="0,0,0,0" VerticalAlignment="Center" BorderBrush="#FFA0A9C1" BorderThickness="0,0,0,1">
  46. <Grid.ColumnDefinitions>
  47. <ColumnDefinition Width="1*"/>
  48. <ColumnDefinition Width="2.5*"/>
  49. <ColumnDefinition Width="2*"/>
  50. <ColumnDefinition Width="2*"/>
  51. </Grid.ColumnDefinitions>
  52. <TextBlock HorizontalAlignment="Center" Foreground="Black" FontSize="25" AllowDrop="True" VerticalAlignment="Center" FontFamily="Segoe MDL2 Assets">
  53. <interactivity:Interaction.Behaviors>
  54. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="0">
  55. <core:ChangePropertyAction PropertyName="Text" Value="&#xe781;" />
  56. <core:ChangePropertyAction PropertyName="Foreground" Value="Red" />
  57. </core:DataTriggerBehavior>
  58. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="1">
  59. <core:ChangePropertyAction PropertyName="Text" Value="&#xe1de;" />
  60. <core:ChangePropertyAction PropertyName="Foreground" Value="Orange" />
  61. </core:DataTriggerBehavior>
  62. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="2">
  63. <core:ChangePropertyAction PropertyName="Text" Value="&#xe814;" />
  64. <core:ChangePropertyAction PropertyName="Foreground" Value="Red" />
  65. </core:DataTriggerBehavior>
  66. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="3">
  67. <core:ChangePropertyAction PropertyName="Text" Value="&#xeb90;" />
  68. <core:ChangePropertyAction PropertyName="Foreground" Value="Red" />
  69. </core:DataTriggerBehavior>
  70. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="4">
  71. <core:ChangePropertyAction PropertyName="Text" Value="&#xe7ba;" />
  72. <core:ChangePropertyAction PropertyName="Foreground" Value="Orange" />
  73. </core:DataTriggerBehavior>
  74. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="5">
  75. <core:ChangePropertyAction PropertyName="Text" Value="&#xea8f;" />
  76. <core:ChangePropertyAction PropertyName="Foreground" Value="Blue" />
  77. </core:DataTriggerBehavior>
  78. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="6">
  79. <core:ChangePropertyAction PropertyName="Text" Value="&#xf167;" />
  80. <core:ChangePropertyAction PropertyName="Foreground" Value="Blue" />
  81. </core:DataTriggerBehavior>
  82. <core:DataTriggerBehavior Binding="{Binding Severity}" Value="7">
  83. <core:ChangePropertyAction PropertyName="Text" Value="&#xe756;" />
  84. <core:ChangePropertyAction PropertyName="Foreground" Value="Blue" />
  85. </core:DataTriggerBehavior>
  86. </interactivity:Interaction.Behaviors>
  87. </TextBlock>
  88. <TextBlock Grid.Column="1" HorizontalAlignment="Center" Text="{Binding Date}" Foreground="Black" FontSize="15" VerticalAlignment="Center" FontFamily="Microsoft JhengHei UI"/>
  89. <TextBlock Grid.Column="2" HorizontalAlignment="Center" Text="{Binding Hostname}" Foreground="Black" FontSize="15" VerticalAlignment="Center" FontFamily="Microsoft JhengHei UI"/>
  90. <TextBlock Grid.Column="3" HorizontalAlignment="Center" Text="{Binding Appname}" Foreground="Black" FontSize="15" VerticalAlignment="Center" FontFamily="Microsoft JhengHei UI"/>
  91. </Grid>
  92. </DataTemplate>
  93. </ListView.ItemTemplate>
  94. </ListView>
  95. </Border>
  96. <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">
  97. <Grid.ColumnDefinitions>
  98. <ColumnDefinition Width="1*"/>
  99. <ColumnDefinition Width="2.5*"/>
  100. <ColumnDefinition Width="2*"/>
  101. <ColumnDefinition Width="2*"/>
  102. </Grid.ColumnDefinitions>
  103. <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"/>
  104. <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"/>
  105. <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"/>
  106. <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"/>
  107. </Grid>
  108. <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" />
  109. <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" />
  110. <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" >
  111. <AppBarButton.RenderTransform>
  112. <CompositeTransform SkewY="0.211" TranslateY="0.059"/>
  113. </AppBarButton.RenderTransform>
  114. </AppBarButton>
  115. <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">
  116. <AppBarButton.Icon>
  117. <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xE756;"/>
  118. </AppBarButton.Icon>
  119. </AppBarButton>
  120.  
  121. <RelativePanel x:Name="RpConsole" Margin="7,19,15,10" Grid.Row="1" BorderThickness="0,0,0,0" Background="Black" Grid.ColumnSpan="3" Visibility="Collapsed" >
  122. <ScrollViewer x:Name="SvrScroll" Width="Auto" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Visible" Height="421" VerticalScrollMode="Enabled">
  123. <TextBlock x:Name="TxtConsole" HorizontalAlignment="Left" Margin="10,10,0,0" Text="" TextWrapping="Wrap" VerticalAlignment="Top" Width="747" Foreground="White" MaxLines="40" FontFamily="Consolas" />
  124. </ScrollViewer>
  125. </RelativePanel>
  126.  
  127. <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">
  128. <RelativePanel.Background>#FF1B1B1E</RelativePanel.Background>
  129. <Rectangle HorizontalAlignment="Left" Height="433" Margin="35,21,0,0" VerticalAlignment="Top" Width="726" Fill="#FFD4DBEC" Grid.RowSpan="2"/>
  130. <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">
  131. <AppBarButton.Icon>
  132. <FontIcon FontFamily="Segoe MDL2 Assets" Glyph="&#xF080;"/>
  133. </AppBarButton.Icon>
  134. </AppBarButton>
  135. <TextBox x:Name="TxtDispositivo" HorizontalAlignment="Left" Margin="84,96,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25" Background="White" Foreground="Black" />
  136. <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"/>
  137. <TextBox x:Name="TxtAzienda" HorizontalAlignment="Left" Margin="84,170,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
  138. <TextBlock HorizontalAlignment="Left" Margin="84,34,0,0" Text="Configurazione" TextWrapping="Wrap" VerticalAlignment="Top" Width="256" Height="36" FontSize="27
  139. " Foreground="#FF1F8CFA" FontFamily="Microsoft JhengHei UI" />
  140. <TextBlock HorizontalAlignment="Left" Margin="84,64,0,0" Text="Nome Dispositivo:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  141. <TextBlock HorizontalAlignment="Left" Margin="84,143,0,0" Text="Azienda:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  142. <TextBox x:Name="TxtEndpoint" HorizontalAlignment="Left" Margin="84,240,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
  143. <TextBlock HorizontalAlignment="Left" Margin="84,208,0,0" Text="Endpoint:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  144. <TextBox x:Name="TxtUser" HorizontalAlignment="Left" Margin="425,170,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
  145. <TextBlock HorizontalAlignment="Left" Margin="425,138,0,0" Text="Username:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  146. <TextBlock HorizontalAlignment="Left" Margin="425,209,0,0" Text="Password:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  147. <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" >
  148. <AppBarButton.RenderTransform>
  149. <CompositeTransform SkewX="-0.231" TranslateX="0.121"/>
  150. </AppBarButton.RenderTransform>
  151. </AppBarButton>
  152. <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"/>
  153. <TextBlock HorizontalAlignment="Left" Margin="84,284,0,0" Text="Local IP:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  154. <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" />
  155. <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"/>
  156. <TextBox x:Name="TxtEndpointAccess" HorizontalAlignment="Left" Margin="425,96,0,0" Text="" VerticalAlignment="Top" Height="43" Width="235" FontSize="25 " Background="White" Foreground="Black" />
  157. <TextBlock HorizontalAlignment="Left" Margin="425,64,0,0" Text="Endpoint access:" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="20" Foreground="Black" TextDecorations="Underline"/>
  158. </RelativePanel>
  159. <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">
  160. <Rectangle Margin="210,37,0,-437" HorizontalAlignment="Left" Width="342" Fill="#FF1B1B1E" VerticalAlignment="Stretch"/>
  161. <Rectangle Margin="215,69,0,-432" HorizontalAlignment="Left" Width="333" Fill="#FFD4DBEC" VerticalAlignment="Stretch"/>
  162. <TextBlock HorizontalAlignment="Left" Height="37" Margin="238,82,0,0" Text="Impostazioni avanzate" TextWrapping="Wrap" VerticalAlignment="Top" Width="267" FontSize="22" Foreground="#FF1F8CFA" />
  163. <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" />
  164. <TextBox HorizontalAlignment="Left" Height="40" Margin="238,160,0,0" Text="514" VerticalAlignment="Top" Width="241" FontSize="20" Background="White" Foreground="Black"/>
  165. <TextBlock HorizontalAlignment="Left" Height="25" Margin="238,128,0,0" Text="Porta" TextWrapping="Wrap" VerticalAlignment="Top" Width="139" FontSize="20" TextDecorations="Underline" Foreground="Black"/>
  166. <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"/>
  167. <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"/>
  168. <Slider x:Name="SldrSaveTime" Maximum="30" TickPlacement="BottomRight" TickFrequency="5" Margin="238,261,-479,-261" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ValueChanged="SldrSaveTime_ValueChanged" Background="DimGray" />
  169. <Slider x:Name="SldrPacketTime" Margin="238,353,-479,-353" Maximum="180" TickFrequency="30" TickPlacement="BottomRight" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ValueChanged="SldrPacketTime_ValueChanged" Background="DimGray"/>
  170. <TextBlock x:Name="TxtPacketTime" Margin="491,359,-539,-387" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="" Foreground="Black"/>
  171. <TextBlock x:Name="TxtSaveTime" Margin="491,263,-539,-291" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Text="" Foreground="Black"/>
  172. </RelativePanel>
  173. </Grid>
  174. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement