Search code examples
wpfpositiongridsplitter

What parameter to serialize for saving location of WPF GridSplitter?


I want to save the location of a GridSplitter used to separate two grid columns.

What should I serialize? The Width of the column before the splitter? The Left property of the splitter? The size and position of the window itself it serialized separately.


Solution

  • You can make use of the GridLengthConverter to achieve saving the settings.

    Here is a post which details how to make use of the class, as they were facing a similar issue.