While browsing the MSDN I came across an example showing how to fix the header areas of the ScrollViewer. Original illustration unavailable: scrollViewerDemo

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

Original illustration unavailable: scrollviewerContent

The XAML quote reads:


    
    
        
    
    
    
    
    
        
    


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 Original illustration unavailable: Laughing