Click here to Skip to main content
15,884,388 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hello everyone. I don't know what to do.
I just create WPF project and press F5 to Start my empty project.
In XAML all types: Window, Grid, Label, Button don't found. But if I write it, project is work and show Window and Label and Button.

Attached Referenses: Microsoft.CSarp, PresentationCore, PresentationFramework, System, System.Core, System.Data, System.DataSetExtension, System.Windows.Presentation, System.Xaml, System.Xml, System.Xml.Linq, WindowsBase, WindowsFormsIntegration.

I dont understand why it cant find all control types. Help me, please.
Posted
Comments
Mahindra Shambharkar 22-Jul-15 4:56am    
Have you checked namespace? i mean in xaml "xmlns"
below two are required to add any control in xaml file.
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Pulka 22-Jul-15 5:01am    
Yes, it wrote.
ChongMing 24-Jul-15 2:25am    
Hi Pulka, I faced the same problem with you. I create a brand new C# WPF project, then immediately the following error show up:

The type 'Window' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

The type 'Grid' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.
Pulka 24-Jul-15 6:37am    
Hello ChongMing!
We are fellow sufferers. :(
On other forum someone say me the next:
1. Rebuild Solution.
2. Close VS. Delete folder %AppData%\Microsoft\VisualStudio\10.0\ReflectedSchemas if it exist, then open VS and rebuild solution.

I didn't found such folder, so this advice did not help me(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900