# Lesser-known ScrollViewer properties: TopLeftHeader, TopHeader and LeftHeader

> While browsing the MSDN I came across an example showing how to fix the header areas of the ScrollViewer. To do this we have three properties:…

- Author: Jérôme Giacomini
- Language: en
- Canonical URL: [Lesser-known ScrollViewer properties: TopLeftHeader, TopHeader and LeftHeader](https://jeromegiacomini.net/articles/lesser-known-scrollviewer-properties-topleftheader-topheader-and-leftheader)
- Last modified: 2026-09-05
- Topics: .NET, C#, Windows

While browsing the MSDN I came across an example showing how to fix the header areas of the ScrollViewer.
![scrollViewerDemo](https://infiniteblogs.blob.core.windows.net/medias/6029/scrollViewerDemo_thumb_72EBBCC9.gif)

To do this we have three properties:

- ScrollViewer.TopLeftHeader: upper left corner

- ScrollViewer.TopHeader: high content that can only scroll from left to right

- ScrollViewer.LeftHeader: the contents of the scroll for scrolling from bottom to top

![scrollviewerContent](https://infiniteblogs.blob.core.windows.net/medias/6029/scrollviewerContent_thumb_13F9B799.png)

The XAML quote reads:

```csharp

    
    
        
    
    
    
    
    
        
    


```


The panel that is in the Content of the ScrollViewer property must be **Horizontal alignment="left".**

Otherwise the framework launches an exception with an error message:

> 
> The TopLeftHeader, TopHeader and LeftHeader properties can only be used when the Content's HorizontalAlignment is HorizontalAlignment.Left.

These properties make it very easy to create a table/agenda that manages the scroll in XAML.

Happy coding ![Laughing](https://infiniteblogs.blob.core.windows.net/medias/6029/wlEmoticon-openmouthedsmile_179DBD26.png)
