и прописать в нём округление границ. Применяя этот стиль на кнопке - кнопка скрывается. Если округляю границы в самой кнопке - всё норм. Что не так делаю? (Ниже код)
                  
                  
                  
                  
                  
                  Стиль:
                  
                  
                  <Application.Resources>
                  
                  
                      <Style TargetType="Button" x:Key="BasicButton">
                  
                  
                        <Setter Property="ItemsControl.Background" Value="White"/>
                  
                  
                        <Setter Property="Template">
                  
                  
                          <Setter.Value>
                  
                  
                            <ControlTemplate TargetType="Button">
                  
                  
                              <Border CornerRadius="15">
                  
                  
                              </Border>
                  
                  
                            </ControlTemplate>
                  
                  
                          </Setter.Value>
                  
                  
                        </Setter>
                  
                  
                      </Style>
                  
                  
                    </Application.Resources>
                  
                  
                  
                  
                  
                  Кнопка:
                  
                  
                  <Button Name="inPlaceButton" Style="{StaticResource BasicButton}" HorizontalAlignment="Left" Margin="573,298,0,0" VerticalAlignment="Top" Height="360" Width="367">
                  
                  
                  <StackPanel Orientation="Vertical">
                  
                  
                          <Image Source="Resources/InPlace.png" Width="362" Height="290" Stretch="Uniform"/>
                  
                  
                          <TextBlock Text="Замовлення в закладі" VerticalAlignment="Top" FontSize = "32" TextAlignment="Center" Foreground="#08402E" Background="White" FontFamily="Calibri Light"/>
                  
                  
                  </StackPanel>
                  
                  
                   </Button>
                  
                  
                
Ты не принес жертву богам.
Обсуждают сегодня