title: Property not recognized or not accessible error when loading VS2010 project into Expression Blend
body: <p>I have a project in VS2010 that uses XAML and now I need to load it into Expression Blend 4. The project builds and runs in VS2010 and this is the first time it has been loaded into Blend. It DOES build and run in Blend even though the members are not recognized.</p>
  
  <p>Why is the Scale property not recognized and why does it show up as an error when it functionally works?</p>
  
  <p><strong>EDIT</strong> Although this builds and runs, the XAML is not displayed graphically in Blend and so cannot be modified by a non-technical user.</p>
  
  <p>In a number of the .xaml files that contain references to usercontrols there is an attribute that is not recognized by Blend with the error:</p>
  
  <pre><code>The member "XXXX" is not recognized or is not accessible
  </code></pre>
  
  <p>The property exists in the .cs code behind file and in each case the error message is the same.</p>
  
  <p>I've looked at a lot of possible answers to this on the internet but none of them is a solution. The referenced items are not read-only. The various classes and properties are Public. I've also added the following WPF reference into the .csproj file, which was missing.</p>
  
  <pre><code>&lt;ProjectTypeGuids&gt;{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}&lt;/ProjectTypeGuids&gt;
  </code></pre>
  
  <p>In the following code, the Scale attribute is not recognized even though it exists as a property in the user control.</p>
  
  <p>Here is the UserControl in MyLogo.xaml:</p>
  
  <pre><code>&lt;UserControl x:Class="NamespaceX.NamespaceY.UI.Shapes.MyLogo"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="132" Width="105"&gt;
  &lt;Canvas&gt;
      &lt;Canvas.LayoutTransform&gt;
          &lt;ScaleTransform x:Name="st" CenterX="0" CenterY="0" /&gt;
      &lt;/Canvas.LayoutTransform&gt;
      &lt;Image Source="/Client;component/Images/MyLogo.png"/&gt;
  &lt;/Canvas&gt;
  </code></pre>
  
  <p></p>
  
  <p>Here is the code behind in MyLogo.xaml.cs:</p>
  
  <pre><code>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 NamespaceX.NamespaceY.UI.Shapes
  {
  /// &lt;summary&gt;
  /// Interaction logic for MyLogo.xaml
  /// &lt;/summary&gt;
  public partial class MyLogo : UserControl
  {
      public double Scale
      {
          get
          {
              return st.ScaleX;
          }
          set
          {
              st.ScaleX = value;
              st.ScaleY = value;
          }
      }
  
      public MyLogo()
      {
          InitializeComponent();
      }
  }
  }
  </code></pre>
  
  <p>In my Navigation.xaml file I have this:</p>
  
  <pre><code>&lt;UserControl x:Class="NamespaceX.NamespaceY.UI.UserControls.Navigation"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:shape="clr-namespace:NamespaceX.NamespaceY.UI.Shapes"    
  Height="185" Width="1280" Loaded="UserControl_Loaded"&gt;
  &lt;FrameworkElement.Resources&gt;
      &lt;ResourceDictionary Source="../Resources/Main.xaml" /&gt;
  &lt;/FrameworkElement.Resources&gt;
  &lt;Canvas&gt;
      &lt;shape:MyLogo Scale="1.2" Height="181.483" Canvas.Left="38" Canvas.Top="4" Width="188" /&gt;
      &lt;StackPanel Canvas.Left="205" Canvas.Top="-2" Width="1062"&gt;
  
      &lt;/StackPanel&gt;
  &lt;/Canvas&gt;
  </code></pre>
  
  <p></p>