WPF designer doesn't run window static constructor upon starting up
When I load solution and there is an opened designer tab for some window, then this window static constructor is not executed. Perhaps my conclusion is wrong (because I am absolutely clueless how designer load things), but here is a test case: Create new WPF project. Create simple extension public class MyExtension : MarkupExtension { public static bool Test; public override object ProvideValue(IServiceProvider serviceProvider) => Test.ToString(); } Add to main window <TextBlock Text="{local:My}" /> and static MainWindow() { MyExtension.Test = true; } Now compile it ( F6 ), TextBlock should