Advertisement
KatarzynaBracha

style wpf

Nov 18th, 2021
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. <Grid>
  2. <WrapPanel>
  3. <WrapPanel.Resources>
  4. <Style x:Key="stylPrzyciskow">
  5. <Setter Property="Button.Margin" Value="10"/>
  6. <Setter Property="Button.Padding" Value="10"/>
  7. <Setter Property="Button.FontSize" Value="12"/>
  8. <Setter Property="Button.FontWeight" Value="Bold"/>
  9. <Setter Property="Button.FontStyle" Value="Italic"/>
  10. <Setter Property="Button.BorderBrush" Value="Black"/>
  11. <Setter Property="Button.BorderThickness" Value="2"/>
  12. <Setter Property="Button.Background">
  13. <Setter.Value>
  14. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  15. <GradientStop Color="White" Offset="0"/>
  16. <GradientStop Color="Gray" Offset="1"/>
  17. </LinearGradientBrush>
  18. </Setter.Value>
  19. </Setter>
  20. </Style>
  21. </WrapPanel.Resources>
  22. <Button Content="Potwierdź" Style="{StaticResource stylPrzyciskow}"/>
  23. <Button Content="Drukuj" Style="{StaticResource stylPrzyciskow}"/>
  24. <Button Content="Usuń" Style="{StaticResource stylPrzyciskow}"/>
  25. <Button Content="Zapisz" Style="{StaticResource stylPrzyciskow}"/>
  26. <Button Content="Anuluj" Style="{StaticResource stylPrzyciskow}"/>
  27. <Button Content="Powrót" Style="{StaticResource stylPrzyciskow}"/>
  28. </WrapPanel>
  29. </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement