Measure Control with double.PositiveInfinity WPF
问题 I am working on a custom control that has a custom panel and inside the custom panel I have a small and simple MeasureOverride method that passes the size of double.PositiveInfinity to its children MeasureOverride method. The custom panel should take care of the layout and it should make children bigger or smaller depending on window size. If you have dealt with controls you should then know how wpf layout system works and that basically every child calls MeasureOverride which calls