Error 2 Cannot create an instance of "TreeView". C:\tfs\GenOn\MyControls.Controls\MyControls.Controls.xxxInformation\xxxInform.xaml 29 13 MyControls.Controls.xxxInformation
The line <my1:TreeView x"Name="trvTreeView" Margin="0,5,0,0" /> is where the error occurs. Sometimes I can fix this by Rebuild All. Sometimes I have to delete generated code. Is there a way to fix this for good? Is it a bug in Visual Studio?