M
M
Mikhail2017-11-29 03:36:37
WPF
Mikhail, 2017-11-29 03:36:37

Why did my WPF application go into a broken state?

Hello. There is a WPF application where I am trying to connect SharpGL. Installed the package via NuGet. The links point to SharpGL, SharpGL.WPF, SharpGL.SceneGraph. And everything compiles fine.
The markup is like this:

<Window x:Class="Monada.MainWindow"
xmlns:wpf="clr-namespace:SharpGL.WPF;assembly=SharpGL.WPF">
<TabItem.Content>
                    <StackPanel Orientation="Vertical" Margin="5 5">
                        <TextBlock Text="Анимированное движение в 3D"/>

                        <wpf:OpenGLControl OpenGLDraw="OpenGLDraw"
                                           OpenGLInitialized="OpenGLInitialized"
                                           Resized="OpenGLResized"
                                           DrawFPS="True"/>
                    </StackPanel>
</TabItem.Content>

I see: OpenGLControl does not exist in the namespace "clr-namespace:SharpGL.WPF;assembly=SharpGL.WPF"
The program starts, but when I try to open the tab where the OpenGL object is located, I get:
The application went into a break state, but there is no code for output to the screen, since all threads were executing external code (usually system code or platform code).
All other tabs work fine.
Link to more detailed code on github

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question