Ho un file XAML che fa riferimento a controlli personalizzati definiti in un altro assieme. Compila e funziona perfettamente in fase di esecuzione, ma il designer XAML sta soffocando e non mostra il contenuto del progetto.Come risolvere l'errore del progettista XAML: il documento contiene errori che devono essere corretti prima che il progettista possa essere caricato
<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>
Il MyCompany.Common.CopyProtection classe e 'situato all'interno del gruppo comune, che si trova nei riferimenti per questo progetto. La classe è pubblica e appena costruita.
Utilizzo Visual Studio Express 2008 con .NET 3.5 SP1. Qui ci sono gli errori:
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.
qualcuno sa come risolvere questi errori in modo da poter iniziare a utilizzare di nuovo il progettista. Il progettista è pratico per selezionare gli elementi XAML e saltare rapidamente nel codice XAML.
Hai una miscela? Se ricordo bene ho visto la "vera ragione" dietro il mio problema lì e non in VS. –
no, non possiedo una licenza di blend. Proverò a dare un'occhiata con il processo. – decasteljau