This example shows how to customize label appearance in GlassLabel.
Example
Description
You can customize the GlassLabel appearance through the following properties.
- Background
- BorderBrush
- BorderThickness
- CornerRadius
- ContentEffect
- GlassBackground
- ShineBackground
- SpreadBackground
The following example show how to customize GlassLabel appearance.
Code
XAML | ![]() |
---|---|
<Intersoft:GlassLabel Intersoft:DockPanel.Dock="Top" Content="Feedback" SpreadBackground="CornflowerBlue" ImageSource="/CustomizeLabelAppearanceInGlassLabel;component/Images/tools-icon.png" ImageHeight="20" ImageWidth="20" ContentType="ContentAndImage" ImageMargin="0 0 5 0" HorizontalContentAlignment="Left" TextImageRelation="ImageBeforeText" /> <Intersoft:GlassLabel Name="glassLabel" Intersoft:DockPanel.Dock="Bottom" Content="Thank for the feedback" ShineBackground="CornflowerBlue" HorizontalContentAlignment="Center" /> |