Я ищу по форуму, но не могу найти ничего, что меня вполне устраивало.
В Microsoft Visual Studio 2010 при попытке добавить пользовательский элемент управления WPF появляется эта ошибка:
"Value cannot be null. Parameter name: objectType"
Затем, когда я хочу выбрать размещенный контент, я получаю эту ошибку:
"An error occured trying to add references for type 'PolyPuttZe.GameCanvas', or finding the type. Make sure the project references are correct."
Я следовал этому уроку: http://www.switchonthecode.com/tutorials/wpf-tutorial-using-wpf-in-winforms
Спасибо!
EDIT:
Это код, который я написал:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Integration;
namespace PolyPuttZe
{
public partial class Game : Form
{
public Game()
{
InitializeComponent();
}
}
}