I am trying to modify a Datagrid in Expression Blend 3 using Silverlight 3 tools. When I attepmt to open the file Blend shows the "Invalid XAML" error and in the XAML shows errors on certain properties within the DataGrids declaration.
<my:DataGrid x:Name="dataGridLegals" AutoGenerateColumns="False"
GridLinesVisibility="None" ColumnHeaderStyle="{StaticResource dthFull}" RowStyle="{StaticResource NoHoverStyle}"
AlternatingRowBackground="Transparent" IsReadOnly="True"
Background="Transparent" BorderBrush="{x:Null}"
RowBackground="{x:Null}" CanUserReorderColumns="False">
The following properties display errors:
- The member "AutoGenerateColumns" is not recognized or is not accessible
- The member "IsReadOnly" is not recognized or is not accessible"
- The member "CanUserReorderColumns" is not recognized or is not accessible"
Here are my assembly references in the header:
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:my="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
xmlns:prim="clr-namespace:System.Windows.Controls.Primitives;assembly=System.Windows.Controls.Data"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vsm="clr-namespace:System.Windows;assembly=System.Windows"