|
@@ -6,7 +6,7 @@
|
|
|
xmlns:local="clr-namespace:WpfApp21Point"
|
|
|
mc:Ignorable="d"
|
|
|
d:DesignHeight="450" d:DesignWidth="900"
|
|
|
- MinHeight="620"
|
|
|
+ MinHeight="640"
|
|
|
Title="DeskPage">
|
|
|
|
|
|
<Grid>
|
|
@@ -33,56 +33,65 @@
|
|
|
Orientation="Horizontal"/>
|
|
|
</ScrollViewer>
|
|
|
</Grid>
|
|
|
- <StackPanel Grid.Column="1" Orientation="Vertical"
|
|
|
- VerticalAlignment="Center" HorizontalAlignment="Center" >
|
|
|
- <Button x:Name="PackOfCards_Button" Grid.Column="1"
|
|
|
+ <StackPanel Grid.Column="1" HorizontalAlignment="Center"
|
|
|
+ Height="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Page}},Path=ActualHeight}">
|
|
|
+ <StackPanel Margin="5" Orientation="Vertical"
|
|
|
+ HorizontalAlignment="Center">
|
|
|
+ <TextBlock Style="{StaticResource OnGreen}" Text="Противник"/>
|
|
|
+ <Image x:Name="ImageOpponent" Source="/Picture/AI/Шрек.jpg" Height="100" Width="100"/>
|
|
|
+ <TextBlock x:Name="NameOpponent" Style="{StaticResource OnGreen}" Text="Шрек"/>
|
|
|
+ <TextBlock x:Name="WinsOpponent" Style="{StaticResource OnGreen}" Text="Побед: "/>
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Margin="0 30 0 0" Orientation="Vertical" VerticalAlignment="Center">
|
|
|
+ <Button x:Name="PackOfCards_Button" Grid.Column="1"
|
|
|
BorderBrush="{x:Null}"
|
|
|
Height="280" Width="180" Click="TakeCardButton_Click">
|
|
|
- <Button.Background>
|
|
|
- <ImageBrush ImageSource="/Picture/Resourse/Рубашка.gif"/>
|
|
|
- </Button.Background>
|
|
|
- <Button.ToolTip>
|
|
|
- <ToolTip>
|
|
|
- Это колода. Нажмите, чтобы взять карту.
|
|
|
- </ToolTip>
|
|
|
- </Button.ToolTip>
|
|
|
- <Button.Style>
|
|
|
- <Style TargetType="Button">
|
|
|
- <Style.Triggers>
|
|
|
- <DataTrigger Binding="{Binding IsEnabled}" Value="True">
|
|
|
- <Setter Property="Background">
|
|
|
- <Setter.Value>
|
|
|
- <ImageBrush ImageSource="/Picture/Resourse/Рубашка.gif"/>
|
|
|
- </Setter.Value>
|
|
|
- </Setter>
|
|
|
- </DataTrigger>
|
|
|
- </Style.Triggers>
|
|
|
- <Setter Property="Template">
|
|
|
- <Setter.Value>
|
|
|
- <ControlTemplate TargetType="{x:Type Button}">
|
|
|
- <Image Source="/Picture/Resourse/Рубашка.gif"/>
|
|
|
- </ControlTemplate>
|
|
|
- </Setter.Value>
|
|
|
- </Setter>
|
|
|
- </Style>
|
|
|
- </Button.Style>
|
|
|
- </Button>
|
|
|
- <TextBlock x:Name="Score" Text="Ваш счёт: 0" Margin="0 25 0 0" Style="{StaticResource OnGreen}">
|
|
|
- <TextBlock.ToolTip>
|
|
|
- <ToolTip>
|
|
|
- Счет ваших очков ведется автоматически.
|
|
|
- </ToolTip>
|
|
|
- </TextBlock.ToolTip>
|
|
|
- </TextBlock>
|
|
|
- <Button x:Name="StopGameButton" Content="Хватит" Width="100"
|
|
|
+ <Button.Background>
|
|
|
+ <ImageBrush ImageSource="/Picture/Resourse/Рубашка.gif"/>
|
|
|
+ </Button.Background>
|
|
|
+ <Button.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Это колода. Нажмите, чтобы взять карту.
|
|
|
+ </ToolTip>
|
|
|
+ </Button.ToolTip>
|
|
|
+ <Button.Style>
|
|
|
+ <Style TargetType="Button">
|
|
|
+ <Style.Triggers>
|
|
|
+ <DataTrigger Binding="{Binding IsEnabled}" Value="True">
|
|
|
+ <Setter Property="Background">
|
|
|
+ <Setter.Value>
|
|
|
+ <ImageBrush ImageSource="/Picture/Resourse/Рубашка.gif"/>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </DataTrigger>
|
|
|
+ </Style.Triggers>
|
|
|
+ <Setter Property="Template">
|
|
|
+ <Setter.Value>
|
|
|
+ <ControlTemplate TargetType="{x:Type Button}">
|
|
|
+ <Image Source="/Picture/Resourse/Рубашка.gif" />
|
|
|
+ </ControlTemplate>
|
|
|
+ </Setter.Value>
|
|
|
+ </Setter>
|
|
|
+ </Style>
|
|
|
+ </Button.Style>
|
|
|
+ </Button>
|
|
|
+ <TextBlock x:Name="Score" Text="Ваш счёт: 0" Margin="0 25 0 0" Style="{StaticResource OnGreen}">
|
|
|
+ <TextBlock.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Счет ваших очков ведется автоматически.
|
|
|
+ </ToolTip>
|
|
|
+ </TextBlock.ToolTip>
|
|
|
+ </TextBlock>
|
|
|
+ <Button x:Name="StopGameButton" Content="Хватит" Width="100"
|
|
|
Style="{StaticResource OnGreenButton}" Margin="0 25 0 0"
|
|
|
Click="StopGameButton_Click">
|
|
|
- <Button.ToolTip>
|
|
|
- <ToolTip>
|
|
|
- Нажмите, если больше не хотите брать карты из колоды.
|
|
|
- </ToolTip>
|
|
|
- </Button.ToolTip>
|
|
|
- </Button>
|
|
|
+ <Button.ToolTip>
|
|
|
+ <ToolTip>
|
|
|
+ Нажмите, если больше не хотите брать карты из колоды.
|
|
|
+ </ToolTip>
|
|
|
+ </Button.ToolTip>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</Page>
|