Within the WPF Designer, what does Enabling/Disabling Project Code do? Within the WPF Designer, what does Enabling/Disabling Project Code do? wpf wpf

Within the WPF Designer, what does Enabling/Disabling Project Code do?


What does this feature do?

It enables or prevents the designer from running your code in the background.

Disabling project code can lead to a loss of design time data and enabling it can lead to unhandled exceptions in the XAML designer. These exceptions are usually caused by code that attempts to access properties or methods which work differently when your application is running in the designer compared to when it runs as a built executable.

Debugging or Disabling Project Code in XAML Designer: https://msdn.microsoft.com/en-us/library/mt622752.aspx?f=255&MSPPError=-2147217396