I have 2 SplitContainers in another one which is all loaded from an XML file using my own deserialization code similar to LoadLayout. Regardless of whether I use ProportionalStackPanel.SetRelativeSize during my load or let it use the defaults, when I later attempt to serialize it, the ProportionalStackPanel.GetRelativeSize function returns the original values that it was loaded with. I would expect that when a user drags the splitter bar that the RelativeSizeProperty would update so that when I use the get function it returns the current values. The same applies for figuring out the RelativeSize for PaneGroups within a SplitContainer.
Is there something I am missing or am I going to have to manually recalculate the split ratio based on the RenderSize to Parent.RenderSize or something similar? If that is the case, would there be an alternative such as handling an event when the split bar moves?
Is there something I am missing or am I going to have to manually recalculate the split ratio based on the RenderSize to Parent.RenderSize or something similar? If that is the case, would there be an alternative such as handling an event when the split bar moves?