I am using the SharpGL.WPF.OpenGLControl in my app and some users are reporting it's failing to load when attempting to assign the shader program. While I try and track it down I'm attempting to disable the control with an app config setting. The problem I've got is that even if the control is disabled and hidden I get an exception as soon as the app is loaded. Is there any way to disable the control without having to remove it from the XAML?
I am using the
SharpGL.WPF.OpenGLControl
in my app and some users are reporting it's failing to load when attempting to assign the shader program. While I try and track it down I'm attempting to disable the control with an app config setting. The problem I've got is that even if the control is disabled and hidden I get an exception as soon as the app is loaded. Is there any way to disable the control without having to remove it from the XAML?