From 902258b6f39b63341d424d8599cb8e75e0991ee2 Mon Sep 17 00:00:00 2001 From: The1Wolfcast Date: Mon, 18 May 2026 17:05:21 -0500 Subject: [PATCH] Fix VS2022 XAML Designer crash from template --- MonoGame.WpfCore/MonoGameControls/MonoGameContentControl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MonoGame.WpfCore/MonoGameControls/MonoGameContentControl.cs b/MonoGame.WpfCore/MonoGameControls/MonoGameContentControl.cs index e55761c..82443fa 100644 --- a/MonoGame.WpfCore/MonoGameControls/MonoGameContentControl.cs +++ b/MonoGame.WpfCore/MonoGameControls/MonoGameContentControl.cs @@ -137,7 +137,7 @@ protected override void OnMouseWheel(MouseWheelEventArgs e) private void Start() { - if(_isInitialized) + if(_isInitialized || DesignerProperties.GetIsInDesignMode(this)) return; if (Window == null)