title: C#/XAML Compile Error - Various Errors (The name "LayoutAwarePage" does not exist")
body: <p><strong>EDIT</strong>:</p>
  
  <p><strong>Here are the pastebins for the code:</strong></p>
  
  <p><a href="http://pastebin.com/s5akShjK" rel="nofollow noreferrer">BasicPage1.xaml.cs</a></p>
  
  <p><a href="http://pastebin.com/ZTmzxq78" rel="nofollow noreferrer">BasicPage1.xaml</a></p>
  
  <p><a href="http://pastebin.com/DVwFEPKR" rel="nofollow noreferrer">LayoutAwarePage.cs</a></p>
  
  <p><strong>EDIT 2</strong></p>
  
  <p>I have added a MS Connect ticket here:</p>
  
  <p><a href="https://connect.microsoft.com/VisualStudio/feedback/details/771648/c-xaml-compile-error-various-errors-the-name-layoutawarepage-does-not-exist#tabs" rel="nofollow noreferrer">https://connect.microsoft.com/VisualStudio/feedback/details/771648/c-xaml-compile-error-various-errors-the-name-layoutawarepage-does-not-exist#tabs</a></p>
  
  <p>Right a head scratcher which I'm hoping others have experienced and know how to resolved as I'm a little disheartened by the whole affair.</p>
  
  <p><strong>The Problem</strong></p>
  
  <p>I have been working on a Windows Store App using C#/XAML to learn the ropes. After hours spent learning I decided to start my own App, which is fine. The issue is, after adding a few Views etc, I started getting the following error within my XAML files (All of them):</p>
  
  <blockquote>
    <p>Error 5   The name "LayoutAwarePage" does not exist in the namespace
    "using:Accountable.Common".   G:\Coding Projects\Visual Studio
    2012\SAVED\Accountable\Accountable\BasicPage1.xaml    1   1   Accountable</p>
  </blockquote>
  
  <p>Which is strange because the <strong>Accountable.Common</strong> is declared within the XAML file:</p>
  
  <pre><code>&lt;common:LayoutAwarePage
  x:Name="pageRoot"
  x:Class="Accountable.BasicPage1"
  DataContext="{Binding DefaultViewModel, RelativeSource={RelativeSource Self}}"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:local="using:Accountable"
  xmlns:common="using:Accountable.Common"
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  mc:Ignorable="d"&gt;
  </code></pre>
  
  <p>So i read <a href="http://connect.microsoft.com/VisualStudio/feedback/details/762100/xaml-designer-doesnt-work#tabs" rel="nofollow noreferrer">here</a> that closing the XAML files down and closing <strong>Visual Studio 2012</strong> and re-opening, plus Building, resolves this issue. It didnt. It now causes the following errors within the Common files created when you first create new templates:</p>
  
  <blockquote>
    <p>Error 1   'Accountable.Common.BooleanNegationConverter' does not
    implement interface member
    'Windows.UI.Xaml.Data.IValueConverter.ConvertBack(object, System.Type,
    object, string)'  G:\Coding Projects\Visual Studio
    2012\SAVED\Accountable\Accountable\Common\BooleanNegationConverter.cs 9   25  Accountable</p>
    
    <p>Error 2   'Accountable.Common.BooleanNegationConverter' does not
    implement interface member
    'Windows.UI.Xaml.Data.IValueConverter.Convert(object, System.Type,
    object, string)'  G:\Coding Projects\Visual Studio
    2012\SAVED\Accountable\Accountable\Common\BooleanNegationConverter.cs 9   25  Accountable</p>
    
    <p>Error 3   'Accountable.Common.BooleanToVisibilityConverter' does not
    implement interface member
    'Windows.UI.Xaml.Data.IValueConverter.ConvertBack(object, System.Type,
    object, string)'  G:\Coding Projects\Visual Studio
    2012\SAVED\Accountable\Accountable\Common\BooleanToVisibilityConverter.cs 20  25  Accountable</p>
    
    <p>Error 4   'Accountable.Common.BooleanToVisibilityConverter' does not
    implement interface member
    'Windows.UI.Xaml.Data.IValueConverter.Convert(object, System.Type,
    object, string)'  G:\Coding Projects\Visual Studio
    2012\SAVED\Accountable\Accountable\Common\BooleanToVisibilityConverter.cs 20  25  Accountable</p>
  </blockquote>
  
  <p>I haven't changed <strong>BooleanNegationConverter.cs</strong> or <strong>BooleanToVisibility.cs</strong>. What have i done to try and resolved the issue:</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/12401440/layoutawarepage-does-not-exist-in-namespace-vs2012-bug">Investigated other SO Posts</a>, to no avail</li>
  <li>Deleted the Solution SUO File with no luck</li>
  <li>Removed my XAML Files, Classes (Models and ViewModels) and deleted Common Classes and created a new Basic Page. This causes the Project to load the classes again. The same problem.</li>
  <li>Removed the reference to <strong>Syncfusion Controls for WinRT XAML</strong> which i used for custom DatePicker controls. Still the same issue.</li>
  <li>Repaired Visual Studio 2012 - Nothing happened still the same problems.</li>
  </ol>
  
  <p>I'm completely at a loss. I have created a new Project and the problem doesn't exist. I dont really want to start my Project again!</p>
  
  <p>FYI - LayoutPageAware.cs is included in the Project:</p>
  
  <p><img src="https://i.stack.imgur.com/JXuZP.png" alt="enter image description here"></p>