Martyn Ball

Martyn Ball

  • NA
  • 2
  • 22.4k

namespace name 'Styles' does not exist

Nov 14 2015 9:15 AM
Getting a weird issue here, my project is working fine with NO errors until I create a new Window. I have got a folder in my project named "Views", which I add the Window to. 
 
This is the error:
[quote] 
The type or namespace name 'Styles' does not exist in the namespace 'Test_Project' (are you missing an assembly reference?)
[/quote] 
 
The error is being caused by the line I have marked below in my new window (Window1.g.cs)
  
using System.Windows; 
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;
using Test_Project.Converters;
using Test_Project.Styles;
using Test_Project.Views;
namespace Test_Project.Views {
/// <summary>
/// Window1
/// </summary>
public partial class Window1 : System.Windows.Window, System.Windows.Markup.IComponentConnector {
private bool _contentLoaded;

Answers (1)