Hello Friend,
I'm facing a problem when creating a new c# WPF project in Microsoft Visual Studio 2010.
The following is my coding is xaml,
<Window x:Class="OfflineCartHMI.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
</Grid>
</Window>
The following is the C# code in MainWindow.xaml.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace OfflineCartHMI
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
Everything looks fine but it show the following error:
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.
Anyone has any ideas to solve this problem?