Предмет:
Тип роботи:
Курсова робота
К-сть сторінок:
38
Мова:
Українська
Canvas.Top="{Binding YPosition}"
Name="LeftPad">
<Rectangle.Fill>
<RadialGradientBrush>
<GradientStop Color="#FF2D35FF" Offset="0"/>
<GradientStop Color="#FF0007AC" Offset="1"/>
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!--Правая ракетка -->
<Rectangle
Height="80" Width="20"
Canvas.Top="{Binding YPosition}"
Canvas.Left="780"
Name="RightPad">
<Rectangle.Fill>
<RadialGradientBrush>
<GradientStop Color="#FFFF3232" Offset="0"/>
<GradientStop Color="#FFB90000" Offset="1"/>
</RadialGradientBrush>
</Rectangle.Fill>
</Rectangle>
<!--Линия-разделитель по средине -->
<Line X1="400" X2="400" Y2="500" Y1="0" StrokeThickness="2" Stroke="#FFDBB062"></Line>
<!--Шарик -->
<!--Canvas.Left расстояние между левой стороной канвы по X
DataContext Возвращает или задает контекст данных для элемента, если он будет участвовать в привязке данных.
-->
<Ellipse Width="20" Height="20"
Canvas.Left="{Binding X}"
Canvas.Top="{Binding Y}"
Name="Ball"
DataContext="{Binding Path=ball}"
StrokeThickness="0.1"
Fill="#FFF84949">
</Ellipse>
<!--
<Label Canvas.Left="630" Canvas.Top="34" Content="{Binding Y}" Height="28" Name="label1" />
<Label Canvas.Left="565" Canvas.Top="34" Content="Y of ball" Height="28" Name="label2" />
<Label Canvas.Left="535" Canvas.Top="68" Content="Y of right pad" Height="28" Name="label3" />
<Label Canvas.Left="630" Canvas.Top="68" Content="{Binding YPosition}" Height="28" Name="label4" />
<Label Canvas.Left="184" Canvas.Top="34" Content="{Binding X}" Height="28" Name="label6" />
<Label Canvas.Left="119" Canvas.Top="34" Content="X of ball" Height="28" Name="label7" />
<Label Canvas.Left="89" Canvas.Top="68" Content="X of right pad" Height="28" Name="label8" />
<Label Canvas.Left="184" Canvas.Top="68" Content="{Binding YPosition}" Height="28" Name="label9" />-->
<!--значение true\false для MovingRight -->
<!-- <Label Canvas.Left="638" Canvas.Top="128" Content="{Binding MovingRight}" Height="28" Name="label5" /> -->
<!--Левый счётчик-->
<Label Content="{Binding LeftResult}" HorizontalContentAlignment="Center" Height="41" Name="label10"
FontSize="20" Foreground="Blue" Background="#FFCDDDFF" Width="42" Canvas.Left="345" Canvas.Top="-48" Panel.ZIndex="10"/>
<!-- Правый счётчик-->
<Label Content="{Binding RightResult}" HorizontalContentAlignment="Center" Height="42" Name="label11"
FontSize="20" Foreground="Brown" Background="#FFFF8484" Width="42" Canvas.Left="416" Canvas.Top="-48" Panel.ZIndex="10"/>
<TextBox Name="score1" Height="41" TextWrapping="Wrap" Text="" Canvas.Top="-48" Width="auto" Canvas.Left="10" Panel.ZIndex="10"/>
<TextBox Name="score2" Height="41" Canvas.Right="10" TextWrapping="Wrap" Text="" Canvas.Top="-48" Width="auto" Panel.ZIndex="10"/>
<StackPanel x:Name="PauseMenuPanel" Height="242" Canvas.Left="180" Canvas.Top="49" Width="442" Background="#FFD6D6D6" Opacity="0.8">
<Button x:Name="btnContinue" Content="Продолжить" Margin="100,50,100,0" Opacity="1.5" Panel.ZIndex="10" Click="btnContinue_Click" Height="25"/>
<Button Content="Настройки" HorizontalAlignment="Left" Height="25" Margin="100,20,0,0" Width="242" Click="Button_Click_1"/>
<Button Content="Правила игры" HorizontalAlignment="Left" Height="25" Margin="100,20,0,0" Width="242" Click="Button_Click_3"/>
<Button Content="Выход в главное меню" HorizontalAlignment="Left" Height="25" Margin="100,23,0,0" Width="242" Click="Button_Click_2"/>
<Label Content="Пауза" HorizontalAlignment="Left" Height="28" Margin="189,-373,0,0" Width="74" FontSize="20" FontStyle="Italic" Foreground="#FF000AE6"/>
</StackPanel>
</Canvas>
<Label x:Name="lblEndScore" Content="Label" HorizontalAlignment="Left" Height="24" Margin="525,10,0,0" VerticalAlignment="Top" Width="99" Visibility="Hidden"/>
<Rectangle HorizontalAlignment="Left" Height="44" VerticalAlignment="Top" Width="811">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFA5BAFF" Offset="0"/>