@bazliiii

Как убрать hover background у StackPanel?

Кто-то может подсказать как убрать обводку при наведении на StackPanel , вот скрины проблемы :
632b519b07f93061419510.png

Вот код:
<Grid x:Name="sideMenu" Panel.ZIndex="10" Background="#FFF897" VerticalAlignment="Top" HorizontalAlignment="Left" Width="250" Height="600" ShowGridLines="True">
            <StackPanel>
                <Grid Height="130" Background="White">
                    <Image  
                        HorizontalAlignment="Left"
                        Height="230"
                        Width="250"
                        Panel.ZIndex="8"
                        gif:ImageBehavior.RepeatBehavior="Forever" 
                        gif:ImageBehavior.AnimatedSource="/img/menu.gif" />
                </Grid>
                <Grid VerticalAlignment="Top" HorizontalAlignment="Left" Height="470" Width="250">
                    <Grid.RowDefinitions>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                        <RowDefinition></RowDefinition>
                    </Grid.RowDefinitions>
                    <Button Grid.Row="1" HorizontalAlignment="Left" VerticalAlignment="Center" Background="Transparent" BorderThickness="0" 
                        Margin="0,0,0,0" Padding="20,0,0,0"
                        Width="250" Height="78.333"
                        FontFamily="Open Sans" 
                        FontSize="16"
                        FontWeight="Normal"
                        Panel.ZIndex="9"
                        Cursor="Hand">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Width="230" Height="40">
                            <Image Source="icons/coding.png" Height="25" />
                            <TextBlock Text="Разрабочики" Margin="15,0,0,0" VerticalAlignment="Center" />
                        </StackPanel>
                    </Button>
                    <Button Grid.Row="3" HorizontalAlignment="Left" VerticalAlignment="Center" Background="Transparent" BorderThickness="0" Click="Button_Menu"
                        Margin="0,0,0,0" Padding="20,0,0,0"
                        Width="250" Height="78.333"
                        FontFamily="Open Sans" 
                        FontSize="16"
                        FontWeight="Normal"
                        Panel.ZIndex="9"
                        Cursor="Hand">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Width="230" Height="40">
                            <Image Source="icons/exit1.png" Height="25" />
                            <TextBlock Text="Скрыть меню" Margin="15,0,0,0" VerticalAlignment="Center" />
                        </StackPanel>
                    </Button>
                    <Button Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Center" Background="Transparent" BorderThickness="0" Click="Start_Game"
                        Margin="0,0,0,0" Padding="20,0,0,0"
                        Width="250" Height="78.333"
                        FontFamily="Open Sans" 
                        FontSize="16"
                        FontWeight="Normal"
                        Panel.ZIndex="9"
                        Cursor="Hand">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" VerticalAlignment="Center" Width="230" Height="40">
                            <Image Source="icons/clockwise.png" Height="25" />
                            <TextBlock Text="Начать заново" Margin="15,0,0,0" VerticalAlignment="Center" />
                        </StackPanel>
                    </Button>
                </Grid>
            </StackPanel>
        </Grid>
  • Вопрос задан
  • 81 просмотр
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы