Author: andrewz | Posted on: 6/11/2008 9:08:18 AM | Views : 617

I'm loading xaml via XamlReader.Load the class has a property named "Name", when loading the xaml it seems to ignore my Name attribute (I also tried x:Name).  The Title property loads fine, but the Name property is always null.

public class Entity
{
   public string Name { get; set; }
   public string Title { get; set; }
}

<Model:Entity
  xmlns="http://schemas.microsoft.com/client/2007"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  xmlns:Model="clr-namespace:SilverlightApplication1;assembly=SilverlightApplication1"
  x:Name="EntityNameX"
  Title="EntityTitleX">
</Model:Entity>


<Model:Entity
  xmlns="Go to the complete details ...