Advertisement
jovanovski

КИ Лаб2 XAML

Mar 2nd, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.26 KB | None | 0 0
  1. <Window x:Class="lab2.MainWindow"
  2.        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3.        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4.        Title="MainWindow" Height="350" Width="525">
  5.     <Grid>
  6.         <TabControl HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Name="tabControl1">
  7.             <TabItem Header="TicTac" Name="ticTacTab">
  8.                 <Grid Name="grid1">
  9.                     <Grid.RowDefinitions>
  10.                         <RowDefinition/>
  11.                         <RowDefinition/>
  12.                         <RowDefinition/>
  13.                     </Grid.RowDefinitions>
  14.                     <Grid.ColumnDefinitions>
  15.                         <ColumnDefinition/>
  16.                         <ColumnDefinition/>
  17.                         <ColumnDefinition/>
  18.                     </Grid.ColumnDefinitions>
  19.                 </Grid>
  20.             </TabItem>
  21.             <TabItem Header="Hangman" Name="hangManTab">
  22.                 <Grid>
  23.                     <Grid.RowDefinitions>
  24.                         <RowDefinition Height="*"/>
  25.                         <RowDefinition Height="Auto"/>
  26.                     </Grid.RowDefinitions>
  27.                     <Canvas Grid.Row="0">
  28.                         <Polyline Points="20,150 70,150 50,150 50,10 150,10 150,30" StrokeThickness="3" Stroke="Black"/>
  29.                         <Ellipse Canvas.Top="30" Canvas.Left="130" Width="40" Height="40" StrokeThickness="2" Stroke="Black" Name="head" />
  30.                         <Polyline Points="150,70 150,120" StrokeThickness="2" Stroke="Black" Name="body"/>
  31.                         <Polyline Points="150,120 130,150" StrokeThickness="2" Stroke="Black" Name="leftLeg"/>
  32.                         <Polyline Points="150,120 170,150" StrokeThickness="2" Stroke="Black" Name="rightLeg"/>
  33.                         <Polyline Points="150,80 130,110" StrokeThickness="2" Stroke="Black" Name="leftArm"/>
  34.                         <Polyline Points="150,80 170,110" StrokeThickness="2" Stroke="Black" Name="rightArm"/>
  35.                     </Canvas>
  36.                     <WrapPanel Grid.Row="1" Name="pnlLetters" Orientation="Horizontal" >
  37.                     </WrapPanel>
  38.                 </Grid>
  39.             </TabItem>
  40.         </TabControl>
  41.     </Grid>
  42. </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement