Browse Source

Fix SD2-1669: Exception when opening DatabasesTreeViewPad

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5889 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 15 years ago
parent
commit
67c9a984b9
  1. 7
      src/AddIns/DisplayBindings/Data/ICSharpCode.Data.EDMDesigner.Core.UI/DisplayBinding/CSDLDatabaseTreeViewNodeResourceDictionary.xaml

7
src/AddIns/DisplayBindings/Data/ICSharpCode.Data.EDMDesigner.Core.UI/DisplayBinding/CSDLDatabaseTreeViewNodeResourceDictionary.xaml

@ -4,12 +4,13 @@ @@ -4,12 +4,13 @@
xmlns:dmDesigner="http://icsharpcode.net/data/edmdesigner/designer"
xmlns:userControls="clr-namespace:ICSharpCode.Data.EDMDesigner.Core.UI.UserControls">
<DataTemplate x:Key="CSDLViewEntityTypeDataTemplate" DataType="{x:Type dmCSDL:EntityType}">
<userControls:CSDLTypeItem Text="{Binding Name}" UIType="{Binding Mode=OneTime}" />
</DataTemplate>
<HierarchicalDataTemplate x:Key="CSDLViewTreeViewDataTemplate" DataType="{x:Type dmDesigner:CSDLView}" ItemsSource="{Binding EntityTypes}"
ItemTemplate="{StaticResource CSDLViewEntityTypeDataTemplate}">
<TextBlock Text="{Binding EDMView.EDM.CSDLContainer.Name}" />
</HierarchicalDataTemplate>
<DataTemplate x:Key="CSDLViewEntityTypeDataTemplate" DataType="{x:Type dmCSDL:EntityType}">
<userControls:CSDLTypeItem Text="{Binding Name}" UIType="{Binding Mode=OneTime}" />
</DataTemplate>
</ResourceDictionary>
Loading…
Cancel
Save