We are already aware of such issues with the SizeToContent behavior of RadWindow. We have a logged item in our Feedback portal for a similar scenario which you can track (we will definitely consider your scenario as well):
However what I can suggest you as work around for this scenario would be to hook to the Checked/Unchecked events of the CheckBox and using a single handler to manually set the size of the Window to be equal to the actual Size of the DockPanel:
And code behind:
sender, RoutedEventArgs e)
.DockPanel.ActualWidth != 0 &&
.DockPanel.ActualHeight != 0)
I'm sorry for any inconvenience caused. If you have any other issues or concerns, please do not hesitate to contact us.
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos
and start improving your app based on facts, not hunches.