Exemple #1
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            OpenGLView child1 = new OpenGLView(new SoraView());
            windowsFormsHost1.Child = child1;

            //System.Windows.Forms.Button btn = new System.Windows.Forms.Button();
            //btn.Text = "asdf";
            //windowsFormsHost1.Child = btn;
        }
Exemple #2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            OpenGLView child1 = new OpenGLView(glView);
            child1.MouseDown += child1_MouseDown;
            child1.MouseMove += child1_MouseMove;
            child1.MouseUp += child1_MouseUp;
            child1.MouseLeave += child1_MouseLeave;
            child1.Paint += child1_Paint;
            windowsFormsHost1.Child = child1;

            glContainer = child1;
        }