Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Grid>
- <WrapPanel>
- <WrapPanel.Resources>
- <Style x:Key="stylElementow">
- <Setter Property="Control.Margin" Value="10"/>
- <Setter Property="Control.Padding" Value="10"/>
- <Setter Property="Control.FontSize" Value="12"/>
- <Setter Property="Control.FontWeight" Value="Bold"/>
- <Setter Property="Control.FontStyle" Value="Italic"/>
- <Setter Property="Control.BorderBrush" Value="Black"/>
- <Setter Property="Control.BorderThickness" Value="2"/>
- <Setter Property="Control.Background">
- <Setter.Value>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Color="White" Offset="0"/>
- <GradientStop Color="Gray" Offset="1"/>
- </LinearGradientBrush>
- </Setter.Value>
- </Setter>
- </Style>
- </WrapPanel.Resources>
- <Button Content="Przycisk" Style="{StaticResource stylElementow}"/>
- <TextBox Text="Pole tekstowe" Style="{StaticResource stylElementow}"/>
- <TextBlock Text="TextBlock. A tu nie ma tła zdefiniowanego w stylu"
- Style="{StaticResource stylElementow}"/>
- </WrapPanel>
- </Grid>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement