Advertisement
Guest User

Untitled

a guest
Sep 24th, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 12.03 KB | None | 0 0
  1.  
  2. <UserControl 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:noesis="clr-namespace:NoesisGUIExtensions" x:Class="UserControls.GameLobby" UseLayoutRounding="True" d:DesignHeight="600" d:DesignWidth="800">
  3.     <Grid>
  4.         <Grid.Background>
  5.             <ImageBrush ImageSource="../HUD/Resources/hudbg.png" />
  6.         </Grid.Background>
  7.         <Grid Margin="25">
  8.             <Grid.RowDefinitions>
  9.                 <RowDefinition Height="44*" />
  10.                 <RowDefinition Height="372*" />
  11.                 <RowDefinition Height="200*" />
  12.                 <RowDefinition Height="31*" />
  13.                 <RowDefinition Height="28*" />
  14.             </Grid.RowDefinitions>
  15.             <Grid.ColumnDefinitions>
  16.                 <ColumnDefinition Width="211*" />
  17.                 <ColumnDefinition Width="431*" />
  18.             </Grid.ColumnDefinitions>
  19.             <Grid Grid.Row="1" Grid.RowSpan="2" Background="#B2000000">
  20.                 <StackPanel>
  21.                     <Expander VerticalAlignment="Top" Header="Blue Team" Foreground="#FFFBFBFB" IsExpanded="True">
  22.                         <ItemsControl x:Name="BlueTeam" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
  23.                             <ItemsControl.ItemTemplate>
  24.                                 <DataTemplate>
  25.                                     <Border Height="25" Margin="1">
  26.                                         <Border.Background>
  27.                                             <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  28.                                                 <LinearGradientBrush.RelativeTransform>
  29.                                                     <TransformGroup>
  30.                                                         <RotateTransform Angle="-90" CenterY="0.5" CenterX="0.5" />
  31.                                                         <TranslateTransform />
  32.                                                     </TransformGroup>
  33.                                                 </LinearGradientBrush.RelativeTransform>
  34.                                                 <GradientStop Color="#7F1059B2" Offset="0" />
  35.                                                 <GradientStop Offset="1" />
  36.                                             </LinearGradientBrush>
  37.                                         </Border.Background>
  38.                                         <Grid>
  39.                                             <TextBlock VerticalAlignment="Center" Text="{Binding Name}" TextAlignment="Left" Padding="20,0,0,0" Foreground="#fff" TextWrapping="Wrap" />
  40.                                         </Grid>
  41.                                     </Border>
  42.                                 </DataTemplate>
  43.                             </ItemsControl.ItemTemplate>
  44.                             <ItemsControl.ItemsPanel>
  45.                                 <ItemsPanelTemplate>
  46.                                     <StackPanel />
  47.                                 </ItemsPanelTemplate>
  48.                             </ItemsControl.ItemsPanel>
  49.                         </ItemsControl>
  50.                     </Expander>
  51.                     <Expander VerticalAlignment="Top" Header="Gold Team" Foreground="#FFFBFBFB" IsExpanded="True">
  52.                         <ItemsControl x:Name="GoldTeam" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
  53.                             <ItemsControl.ItemTemplate>
  54.                                 <DataTemplate>
  55.                                     <Border Height="25" Margin="1">
  56.                                         <Border.Background>
  57.                                             <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
  58.                                                 <LinearGradientBrush.RelativeTransform>
  59.                                                     <TransformGroup>
  60.                                                         <RotateTransform Angle="-90" CenterY="0.5" CenterX="0.5" />
  61.                                                         <TranslateTransform />
  62.                                                     </TransformGroup>
  63.                                                 </LinearGradientBrush.RelativeTransform>
  64.                                                 <GradientStop Color="#7FFBAE09" Offset="0" />
  65.                                                 <GradientStop Offset="1" />
  66.                                             </LinearGradientBrush>
  67.                                         </Border.Background>
  68.                                         <Grid>
  69.                                             <TextBlock VerticalAlignment="Center" Text="{Binding Name}" TextAlignment="Left" Padding="20,0,0,0" Foreground="#fff" TextWrapping="Wrap" />
  70.                                         </Grid>
  71.                                     </Border>
  72.                                 </DataTemplate>
  73.                             </ItemsControl.ItemTemplate>
  74.                             <ItemsControl.ItemsPanel>
  75.                                 <ItemsPanelTemplate>
  76.                                     <StackPanel />
  77.                                 </ItemsPanelTemplate>
  78.                             </ItemsControl.ItemsPanel>
  79.                         </ItemsControl>
  80.                     </Expander>
  81.                     <ItemsControl x:Name="UserList" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
  82.                         <ItemsControl.ItemTemplate>
  83.                             <DataTemplate>
  84.                                 <Border Height="25" Margin="1">
  85.                                     <Grid>
  86.                                         <TextBlock VerticalAlignment="Center" Text="{Binding Name}" TextAlignment="Left" Padding="10,0,0,0" Foreground="#fff" TextWrapping="Wrap" />
  87.                                     </Grid>
  88.                                 </Border>
  89.                             </DataTemplate>
  90.                         </ItemsControl.ItemTemplate>
  91.                         <ItemsControl.ItemsPanel>
  92.                             <ItemsPanelTemplate>
  93.                                 <StackPanel />
  94.                             </ItemsPanelTemplate>
  95.                         </ItemsControl.ItemsPanel>
  96.                     </ItemsControl>
  97.                 </StackPanel>
  98.             </Grid>
  99.             <Grid Grid.Row="0" Grid.Column="0">
  100.                 <TextBlock TextAlignment="Center" FontSize="18" Foreground="#fff" Text="Player List" VerticalAlignment="Center"></TextBlock>
  101.             </Grid>
  102.             <Grid Grid.Row="2" Grid.RowSpan="2" Grid.Column="1" Background="#B2000000" Margin="5,5,5,0" Grid.ColumnSpan="2">
  103.                 <ScrollViewer x:Name="ScrollChat">
  104.                     <ItemsControl x:Name="ChatBox" Grid.Column="0" Background="#B2000000" Margin="5">
  105.                         <ItemsControl.ItemTemplate>
  106.                             <DataTemplate>
  107.                                 <TextBlock HorizontalAlignment="Left" Text="{Binding Message}" Foreground="{Binding Color}" TextWrapping="Wrap" />
  108.                             </DataTemplate>
  109.                         </ItemsControl.ItemTemplate>
  110.                         <ItemsControl.ItemsPanel>
  111.                             <ItemsPanelTemplate>
  112.                                 <StackPanel />
  113.                             </ItemsPanelTemplate>
  114.                         </ItemsControl.ItemsPanel>
  115.                     </ItemsControl>
  116.                 </ScrollViewer>
  117.             </Grid>
  118.             <TextBox x:Name="txtChat" Margin="4,4,4,0" Grid.Row="4" Grid.Column="1" Background="#B2000000" Foreground="#fff" BorderThickness="0" Grid.ColumnSpan="2"></TextBox>
  119.             <Grid Margin="5,0,0,0" Grid.Row="1" Grid.Column="1" Background="#B2000000" Grid.ColumnSpan="2">
  120.                 <Grid.RowDefinitions>
  121.                     <RowDefinition Height="*" />
  122.                     <RowDefinition Height="*" />
  123.                 </Grid.RowDefinitions>
  124.                 <Grid.ColumnDefinitions>
  125.                     <ColumnDefinition Width="*" />
  126.                     <ColumnDefinition Width="*" />
  127.                 </Grid.ColumnDefinitions>
  128.                 <Grid Grid.Row="0" Grid.Column="1">
  129.                     <Grid.Background>
  130.                         <ImageBrush ImageSource="/HUDz;component/testing.png" />
  131.                     </Grid.Background>
  132.                 </Grid>
  133.             </Grid>
  134.             <Border x:Name="btnJoinBlue" Background="#7F1059B2" Grid.Row="3" BorderBrush="#FF0F6ECD" BorderThickness="1" Margin="2">
  135.                 <TextBlock Foreground="#fff" TextAlignment="Center" Text="Blue Team" VerticalAlignment="Center" />
  136.             </Border>
  137.             <Border x:Name="btnJoinGold" Background="#7FFBAE09" Grid.Row="4" BorderBrush="#FFBF991D" BorderThickness="1" Margin="2">
  138.                 <TextBlock Foreground="#fff" TextAlignment="Center" Text="Gold Team Team" VerticalAlignment="Center" />
  139.             </Border>
  140.             <Border CornerRadius="5" Padding="5" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="10,5,0,5" Background="#7F62CF07">
  141.                 <CheckBox x:Name="cbReadyUp" Foreground="#FFFFFEFE" Content="Ready Up"></CheckBox>
  142.             </Border>
  143.             <Border Background="#7F0D0D0E" CornerRadius="5" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Width="200" Margin="0,0,0,0" MinHeight="30" VerticalAlignment="Top" BorderThickness="1">
  144.                 <Expander x:Name="expServer" Margin="3" Foreground="#FFFDFCFC">
  145.                     <Expander.Header>
  146.                         <TextBlock x:Name="expHeader" Foreground="White" Text="Server Control Panel" HorizontalAlignment="Left"></TextBlock>
  147.                     </Expander.Header>
  148.                     <StackPanel Orientation="Vertical">
  149.                         <Grid>
  150.                             <Grid x:Name="svrAuth">
  151.                                 <StackPanel Margin="5" Orientation="Vertical">
  152.                                     <PasswordBox Margin="5" Password="password" Background="#FF1B1B1B" x:Name="svrPassword" Foreground="#FFF3F2F2"></PasswordBox>
  153.                                     <Border x:Name="btnAuth" CornerRadius="5" Height="25" HorizontalAlignment="Right" Margin="5" Background="#FF527E3E">
  154.                                         <TextBlock VerticalAlignment="Center" Padding="10" Text="Auth"></TextBlock>
  155.                                     </Border>
  156.                                 </StackPanel>
  157.                             </Grid>
  158.                         </Grid>
  159.                         <Grid x:Name="svrOptions" Visibility="Collapsed">
  160.                             <StackPanel Orientation="Vertical">
  161.                                 <TextBlock Margin="5" HorizontalAlignment="Left" VerticalAlignment="Center" Foreground="#fff" Text="Change Map"></TextBlock>
  162.                                 <ComboBox x:Name="MapList" Grid.Column="0" Grid.Row="1" Grid.RowSpan="2" Margin="0,0,0,1">
  163.                                     <ComboBox.ItemTemplate>
  164.                                         <DataTemplate>
  165.                                             <TextBlock Text="{Binding Name}" />
  166.                                         </DataTemplate>
  167.                                     </ComboBox.ItemTemplate>
  168.                                     <!--<ComboBox.SelectionBoxItemTemplate>
  169.            <DataTemplate>
  170.                <TextBlock Foreground="LimeGreen" Text="{Binding Name}"/>
  171.            </DataTemplate>
  172.        </ComboBox.SelectionBoxItemTemplate>-->
  173.                                 </ComboBox>
  174.                             </StackPanel>
  175.                         </Grid>
  176.                     </StackPanel>
  177.                 </Expander>
  178.             </Border>
  179.             <Border x:Name="btnDisconnect" CornerRadius="5" Padding="5" Grid.Column="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,5,10,5" Background="#33E40808">
  180.                 <TextBlock TextAlignment="Center" VerticalAlignment="Center" Foreground="White">Disconnect</TextBlock>
  181.             </Border>
  182.         </Grid>
  183.     </Grid>
  184. </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement