다른 어셈블리에 정의 된 사용자 지정 컨트롤을 참조하는 XAML 파일이 있습니다. 런타임시 컴파일되고 완벽하게 작동하지만 XAML 디자이너는 질식하고 있으며 디자인 컨텐트를 표시하지 않습니다.XAML 디자이너 오류를 해결하는 방법 : 디자이너에로드하기 전에 수정해야하는 오류가 문서에 포함되어 있습니다.
<Window x:Class="MyProgram.AboutWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:copy="clr-namespace:MyCompany.Common.CopyProtection;assembly=Common"
Title="About Box" Height="400" Width="400" SizeToContent="Height">
<copy:RegistrationPanel />
</Window>
클래스 MyCompany.Common.CopyProtection는이 프로젝트의 참조에있는 일반적인 조립, 내부 loacted된다. 수업은 공개이고 새로 지어졌습니다.
.NET 3.5 SP1이 설치된 Visual Studio Express 2008을 사용하고 있습니다. 다음은 오류입니다.
Problem Loading
The document contains errors that must be fixed before the designer can be loaded. Reload the designer after you have fixed the errors.
Error 1 The type 'copy:RegistrationPanel' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Error 2 Assembly 'Common' was not found. Verify that you are not missing an assembly reference. Also, verify that your project and all referenced assemblies have been built.
누구든지 이러한 오류를 해결하는 방법을 알고 있으므로 디자이너를 다시 사용할 수 있습니다. 디자이너는 XAML 요소를 선택하고 XAML 코드로 빠르게 이동합니다.
블렌드가 있습니까? 내가 올바르게 기억한다면 VS에서 내 문제의 배후에있는 "진짜 이유"를 보았습니다. –
아니요, 나는 혼합 면허증을 소유하고 있지 않습니다. 나는 재판을하려고 노력할 것이다. – decasteljau