# Adding Text to the Header Bar

## Content

By default, the [C1HeaderedContentControl'](/componentone/api/wpf/online-basiclibrary/dotnet-framework-api/C1.WPF.4.6.2/C1.WPF.C1HeaderedContentControl.html)s header is empty. You can add text to the HeaderedContentControl's header by setting the Header property to a string in Visual Studio, in XAML, or in code.

**At Design Time**

To set the Header property in Visual Studio, complete the following steps:

1. Click **C1HeaderedContentControl** once to select it.
2. Under the Properties tab, set the Header property to a string (for example, "Hello World").

**In XAML**

To set the Header property in XAML, add `Header="Hello World"` to the `<c1:C1HeaderedContentControl>` tag so that it appears similar to the following:

```xml
<c1:C1HeaderedContentControl Header="Hello World" Width="150" Height="55">
```

**In Code**

To set the Header property in code, complete the following steps:

1. Add `x:Name="C1HeaderedContentControl_Ct"` to the `<c1:C1HeaderedContentControl>` tag so that the control will have a unique identifier for you to call in code.
2. Enter Code view and add the following code beneath the **InitializeComponent()** method:
<br>
    DOC-DETAILS-TAG-OPEN
<br>
    DOC-SUMMARY-TAG-OPEN
<br>
    Visual Basic
<br>
    DOC-SUMMARY-TAG-CLOSE

    ```vbnet
    C1HeaderedContentControl_Ct.Header = "Hello World"
    ```

    DOC-DETAILS-TAG-CLOSE
<br>
    DOC-DETAILS-TAG-OPEN
<br>
    DOC-SUMMARY-TAG-OPEN
<br>
    C#
<br>
    DOC-SUMMARY-TAG-CLOSE

    ```csharp
    C1HeaderedContentControl_Ct.Header = "Hello World";
    ```

    DOC-DETAILS-TAG-CLOSE
3. Run the program.

**This Topic Illustrates the following**:
The header of **C1HeaderedContentControl** now reads "Hello World". The result of this topic should resemble the following:
![C1WPF Basic Library - Text to Header Bar result](https://cdn.mescius.io/document-site-files/images/7e9deccd-1f1c-4ec7-af90-b4332b45dead/images/headercontentcontrol/headerbartext.png)

>type=note
> Note: The content panel displays the string "C1HeaderedContentControl" by default. To learn how to add different content to the content panel, see [Adding Content to the Content Panel](/componentone/docs/wpf/online-basiclibrary/overview/HeaderedContentControl/HeaderedContentControlTask-BasedHelp/AddingContenttotheContentPanel).