Xceed's theme products come with several brushes that you can use to style your own controls. By doing so, your controls will fit seamlessly into the rest of the styled application. The available brushes are listed in topics specific to each theme.
The following example shows how to apply brushes to a derived Border control, using the OuterBorderBrush and InnerBorderBrush brushes.
XAML |
Copy Code |
---|---|
<Grid> <MyBorder Background="{x:Static xcpt:GlassResources.ControlBackgroundBrush}" BorderBrush="{x:Static xcpt:GlassResources.OuterBorderBrush}" BorderThickness="3" Margin="0,0,0,0" /> <MyBorder Background="{x:Static xcpt:GlassResources.ControlBackgroundBrush}" BorderBrush="{x:Static xcpt:GlassResources.InnerBorderBrush}" BorderThickness="3" Margin="3,3,3,3" /> </Grid> |