2009-07-23 4 views
0

최근 내 SL2 솔루션을 SL3으로 향상 시켰습니다.silverlight 3 datagrid x : 이름 문제

<UserControl x:Class="Case.CaseDataGrid_View" 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
      xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"> 


    <data:DataGrid Language="en-GB" 
        AutoGenerateColumns="True" 
        RowHeight="20" 
        ItemsSource="{Binding Cases}" 
        SelectedItem="{Binding SelectedCase, Mode=TwoWay}"> 

    </data:DataGrid> 

</UserControl> 

이것은 부모 페이지에서 refernced한다 : 나는 단지 데이터 그리드를 포함하는 UserControl을이

<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"      
      mc:Ignorable="d" 
      x:Class="eg.WorkManager.UI.Module.CaseEnquiry.CaseEnquiry" 
      d:DesignWidth="888" 
      d:DesignHeight="480" 
      xmlns:case="clr-namespace:Case;assembly=UserControls"> 

    <ContentControl x:Name="SecurityContext" 
        HorizontalContentAlignment="Stretch" 
        VerticalContentAlignment="Stretch"> 
     <Grid x:Name="LayoutRoot"> 
      <case:CaseDataGrid_View Grid.Row="0" 
            MinHeight="200" 
            Margin="8,8,0,8" 
            HorizontalAlignment="Left" 
            VerticalAlignment="Top" 
            Height="Auto" 
            Cases="{Binding Cases}" 
            SelectedCase="{Binding SelectedCase, Mode=TwoWay}" 
            CustomGridFields="{Binding CustomDataGridFields}" /> 

</Grid> 
    </ContentControl> 
</UserControl> 

내가 X 추가 할 때 내 기본 UserControl을에 이름 속성을, 내 모든 속성에을 사용자 컨트롤 참조 시작 던지는 오류 :

오류는 먼저 X를 가리키는, 알 수없는 속성 위해 Grid.Row으로보고
<data:DataGrid x:Name="AnythingItSeems" 
Language="en-GB" 
         AutoGenerateColumns="True" 
         RowHeight="20" 
         ItemsSource="{Binding Cases}" 
         SelectedItem="{Binding SelectedCase, Mode=TwoWay}"> 

     </data:DataGrid> 

부모 페이지에서 AML : 나는 위해 Grid.Row 속성, 다음 던져 유사한 오류를 제거

<case:CaseDataGrid_View Grid.Row="0" 

.

데이터 릿의 알려진 이슈/버그입니까? 그렇지 않다면 어떤 아이디어가 원인입니까?

감사합니다, 마크는

내 SL3의 updgrade 제대로 내 SL 어셈블리 참조를 업데이트하지 않은 것으로 보인다

답변

0

(난, 소스 코드에서 SL 어셈블리의 사본을 보관 C에서 작동하지 않는 개발자 그렇게 : \로 기본값은 여전히 ​​프로젝트를 열고 컴파일 할 수 있습니다)

+0

나는 똑같이합니다. 소스 트리를 그렇게 설정할 때 어셈블리를 수동으로 업데이트해야합니다. –

+0

실제로 저장된 어셈블리를 업데이트하지 않아도 기본 위치로 되돌아 가야합니다. c : \ Program Files \ Microsoft SDKs \ Silverlight \ v3.0 \ Libraries \ Client \ :--( –