SHARE
TWEET

MainWindow.xaml - TCPThingy

a guest Apr 21st, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <Grid>
  2.         <Menu VerticalAlignment="Top" Background="#FF3C3C3C">
  3.             <MenuItem Header="Windows" Foreground="#FFEAEAEA">
  4.                 <MenuItem Header="Open New Client Window" Click="MenuItem_Click" Uid="0"  Foreground="#FFEAEAEA" Background="#FF3C3C3C"/>
  5.                 <MenuItem Header="Open New Server/Client Window" Click="MenuItem_Click" Uid="1"  Foreground="#FFEAEAEA" Background="#FF3C3C3C"/>
  6.             </MenuItem>
  7.         </Menu>
  8.         <Grid Height="170" VerticalAlignment="Top" Margin="0,18,0,0">
  9.             <Grid.ColumnDefinitions>
  10.                 <ColumnDefinition Width="*"/>
  11.                 <ColumnDefinition Width="*"/>
  12.             </Grid.ColumnDefinitions>
  13.             <Button x:Name="connectClient" Content="Connect Client" Margin="10,0,3,2" VerticalAlignment="Bottom" Height="37" Click="ConnectButton_Click" Foreground="#FFEAEAEA" Background="#FF3C3C3C" BorderBrush="#FF373737"/>
  14.             <TextBox x:Name="AddressBox" FontSize="16" Padding="3" Height="32" Margin="10,36,6,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.ColumnSpan="2" Background="#FF2C2C2C" BorderBrush="#FF292929" Foreground="#FFEAEAEA"/>
  15.             <Button x:Name="connectServer" Content="Connect Server" Margin="3,0,6,2" VerticalAlignment="Bottom" Height="37" Grid.Column="1" Click="ConnectServer_Click" Foreground="#FFEAEAEA" Background="#FF3C3C3C" BorderBrush="#FF373737"/>
  16.             <Label Content="Address" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Foreground="#FFEAEAEA"/>
  17.             <Label Content="Port" HorizontalAlignment="Left" Margin="10,68,0,0" VerticalAlignment="Top" Foreground="#FFEAEAEA"/>
  18.             <TextBox x:Name="portBox" FontSize="16" Padding="3" Height="32" Margin="10,94,6,0" TextWrapping="Wrap" VerticalAlignment="Top" Grid.ColumnSpan="2" Background="#FF2C2C2C" BorderBrush="#FF292929" Foreground="#FFEAEAEA"/>
  19.         </Grid>
  20.         <Grid Margin="0,188,0,0">
  21.             <Grid.ColumnDefinitions>
  22.                 <ColumnDefinition Width="*"/>
  23.                 <ColumnDefinition Width="*"/>
  24.             </Grid.ColumnDefinitions>
  25.             <ListBox x:Name="sendList" Margin="10,84,3,10" Background="#FF2C2C2C" BorderBrush="#FF292929" Foreground="#FFEAEAEA"/>
  26.             <ListBox x:Name="receivedList" Margin="3,84,11,10" Grid.Column="1" Background="#FF2C2C2C" BorderBrush="#FF292929" Foreground="#FFEAEAEA"/>
  27.             <Label Content="Sent (from Client)" HorizontalAlignment="Left" Margin="10,58,0,0" VerticalAlignment="Top" Foreground="#FFEAEAEA"/>
  28.             <Label Content="Received (from Clients)" HorizontalAlignment="Left" Margin="3,58,0,0" VerticalAlignment="Top" Grid.Column="1" Foreground="#FFEAEAEA"/>
  29.             <Label Content="Send as Client" HorizontalAlignment="Left" Margin="10,0,0,0" VerticalAlignment="Top" Foreground="#FFEAEAEA"/>
  30.             <TextBox ToolTip="Press ENTER to send" x:Name="sendText" FontSize="16" Padding="3" Height="32" Margin="10,26,11,0" TextWrapping="Wrap" VerticalAlignment="Top" PreviewKeyDown="SendText_PreviewKeyDown" Grid.ColumnSpan="2" Background="#FF2C2C2C" BorderBrush="#FF292929" Foreground="#FFEAEAEA"/>
  31.         </Grid>
  32.     </Grid>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top