Загрузка данных


<Window.Resources>
    <LinearGradientBrush x:Key="BarabanBrush" StartPoint="0,0" EndPoint="1,1">
    <GradientStop Color="#FF6B6B" Offset="0"/>
    <GradientStop Color="#FFE66D" Offset="0.3"/>
    <GradientStop Color="#FF6B6B" Offset="0.7"/>
    <GradientStop Color="#4ECDCA" Offset="1"/>

    </LinearGradientBrush>

    <Style x:Key="LetterButtonStyle" TargetType="Button">
    <Setter Property="Width" Value="50"/>
    <Setter Property="Height" Value="50"/>
    <Setter Property="FontSize" Value="20"/>
    <Setter Property="FontWeight" Value="Bold"/>
    <Setter Property="Margin" Value="5"/>
    <Setter Property="Background">
    <Setter.Value>
    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
    <GradientStop Color="#FFD700" Offset="0"/>
    <GradientStop Color="#FFA500" Offset="1"/>
    </LinearGradientBrush>
    </Setter.Value>
    </Setter>
    <Setter Property="BorderBrush" Value="#BB866B"/>
    <Setter Property="BorderThickness" Value="2"/>
    <Setter Property="Cursor" Value="Hand"/>

</Style>

<Style x:Key="LetterBlockStyle" TargetType="Border">
    <Setter Property="Width" Value="60"/>
    <Setter Property="Height" Value="70"/>
    <Setter Property="Margin" Value="5"/>
    <Setter Property="Background" Value="#FFFFFF" />
    <Setter Property="BorderBrush" Value="#333333"/>
    <Setter Property="BorderThickness" Value="2"/>
    <Setter Property="CornerRadius" Value="5"/>
    <Setter Property="Effect">
    <Setter.Value>
    <DropShadowEffect BlurRadius="3" ShadowDepth="2" Opacity="0.3"/>
    </Setter.Value>
    </Setter>
</Style>
</Window.Resources>

<Grid Margin="10">
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="Auto"/>
    <RowDefintion Height="Auto"/>
    </Grid.RowDefinitions>

    <!-- Заголовок -->
    <Border Grid.Row="0" Background="#FFF700" Height="230" CornerRadius="10" Margin="0,0,0,40" Padding="10">
    <TextBlock Text="Призрак счастья" FontSize="36" FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF0000" VerticalAlignment="Center" Opacity="1"/>
    </Border>

    <Grid x:Name="BarabanContent" RenderTransformOrigin="0,5,0.5">
    <Grid.RenderTransform>
    <RotateTransform x:Name="BarabanRotation" Angle="0"/>
    </Grid.RenderTransform>
    </Grid>

    <!-- Бабабан -->
    <Border x:Name="Baraban" Grid.Column="1" Width="150" Height="150" CornerRadius="100">
    <Background>
    <StaticResource BarabanBrush/>
    </Background>
    <BorderBrush>
    <SolidColorBrush Color="#BB0000" />
    </BorderBrush>
    <Border Effect>
    <DropShadowEffect BlurRadius="10" ShadowDepth="5" Opacity="0.5"/>
    </Border>
    <Ellipse Width="130" Height="130" Stroke="#FFFF66D" StrokeThickness="3"/>
    <Ellipse Width="110" Height="110" Stroke="#FFFF66D" StrokeThickness="2"/>
    <TextBlock Text="Оформление" Foreground="#FFE666D" HorizontalAlignment="Center" VerticalAlignment="Center" Opacity="1"/>
    </Border>
    </Grid>

<!-- Информационная панель -->
<Border Grid.Row="2" Background="#FFF4B5" CornerRadius="10" Padding="0" Margin="0,-30,0,-20">
    <Grid>
    <Grid.ColumnDefinitions>
    <ColumnDefinition Width="*"/>
    <ColumnDefinition Width="*"/>
    <ColumnDefinition Width="*"/>
    </Grid.ColumnDefinitions>

    <!-- Очки -->
    <Border Grid.Column="0" Background="#FFE4B5" CornerRadius="5" Padding="10" Margin="5">
    <StackPanel>
    <TextBlock Text="Очки" FontWeight="Bold" HorizontalAlignment="Center"/>
    <TextBlock x:Name="ScoreText" Text="0" FontSize="24" FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF0000"/>
    <FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF0000"/>
    </StackPanel>
    </Border>

    <!-- Попытки -->
    <Border Grid.Column="1" Background="#FFE4B5" CornerRadius="5" Padding="10" Margin="5">
    <StackPanel>
    <TextBlock Text="ОСТАНОВКА ПОПЫТКИ" FontWeight="Bold" HorizontalAlignment="Center"/>
    <TextBlock x:Name="AttemptsText" Text="3" FontSize="24" FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF0000"/>
    <FontWeight="Bold" HorizontalAlignment="Center" Foreground="#FF0000"/>
    </StackPanel>
    </Border>

<!-- Призы -->