I am trying to get the size changed event for a floating only window and I guess I am not using the right events or this is a bug.
I have tried to wire up the SplitPane, ContentPane and even the actual content (in this case a web browser control) using the SizeChanged events but when I resize the floating windows none of the SizeChanged events get fired.
Am I doing something wrong or is this an issue with the control?
Thanks
SizeChanged is a direct routed event fired by the WPF framework for FrameworkElement when the RenderSize is changed. So as long as you hook that event directly on the element (ContentPane, HwndHost, PaneToolWindow) then it will get invokved when that property is changed which will (and in my test did) occur after the window was resized. Can you post a small sample that shows the problem?
Ok, had to do some testing to figure out why it does not work in my application and found out that if the floating only splitpane is collapsed when the application is started and then shown later the sizechanged events do not fire. A demo of this is attached.
Please let me know if you see this as a bug also.