Obscure and Frustrating WPF/.Net Framework/ClickOnce Issues
June 5, 2019

Obscure and Frustrating WPF/.Net Framework/ClickOnce Issues

This is just a space for us to jot down some of the more obscure issues we've encountered dealing with deploying WPF apps on corporate networks.

WPF Hanging in Infinite Rendering Loop

Affects: any WPF app running on .Net Framework 4.7.x that makes use of "star" sizing in WPF grids.

Resolution:

  • Downgrade to 4.6.x
  • Upgrade to 4.8+
  • Add the following config setting in app.config (but note that this undoes several other enhancements that have come about with the grid system in 4.7.x):
<configuration>
    <runtime>
        <AppContextSwitchOverrides value="Switch.System.Windows.Controls.Grid.StarDefinitionsCanExceedAvailableSpace=true" />
    </runtime>
</configuration>

For an in-depth analysis and explanation of the problem, see: WPF Hanging in Infinite Rendering Loop

Obscure and Frustrating WPF/.Net Framework/ClickOnce Issues
Share this