MainWindow.xaml:
<Window x:Class="View.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Nothing" Height="600" Width="800" MinHeight="450" MinWidth="400"/>
Mainwindow.xaml.cs:
using System.Windows;
namespace View
{
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
}
}
}
It throws an error. The namespaces are correct, i tried rebuilding the solution, cleaning the solution, the xaml build action is set to Page. The same code worked before, then i changed the View namespace to View2 in both files, it started throwing errors, so i changed it back, but the same error appears. Is there anybody who solved this bug somehow (without creating a new solution and copying the files, which would obviously solve the problem)?