Social Icons

Saturday, 23 February 2013

How to set Different background for WPF Groupbox header

Title: Giving different background for groupbox header


By default wpf groupbox has header property in which we will mention header text but we can not have property to change the background of header text. so for custom header text background use following

By Default When we drag groupbox control  we will see code like this. In this there is no property to set different background for header.

            <GroupBox Canvas.Left="49" Canvas.Top="61" Header="groupBox1" Height="100" Name="groupBox1" Width="200">
                <Grid />

Use follow to set Custom background for groupbox header

 <GroupBox Name="GrbxMain" BorderBrush="{x:Null}">
            <Label Foreground="White">Supplier</Label>

No comments:

Post a Comment

Please Give your Valuable Suggestions,Questions and Comments to improve my blog.