or
public class Progetto { public Progetto() { ID = 0; Descrizione = String.Empty; Stringhe = new ObservableCollection<Stringa>(); Sprites = new ObservableCollection<Sprite>(); } public int ID { set; get; } public String Descrizione { set; get; } public ObservableCollection<Stringa> Stringhe { set; get; } public ObservableCollection<Sprite> Sprites { set; get; } } In my RadTree i'd like to see under the root node (Progetto) the two items "stringhe" and "sprites". I Tried with HierarchicalDataTemplate but with no result because under the root node i can only see "Stringhe" or "Sprites"... how to see that together ?? :
here my Hierrarchical..
<HierarchicalDataTemplate x:Key="Stringa"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding Ciao}" Foreground="Black" FontWeight="Bold" FontSize="12" /> <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" /> </StackPanel> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="Sprite"> <StackPanel Orientation="Horizontal"> <TextBlock Text="{Binding ID}" Foreground="Black" FontWeight="Bold" FontSize="12" /> <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" /> </StackPanel> </HierarchicalDataTemplate> <HierarchicalDataTemplate x:Key="Progetti" ItemsSource="{Binding Stringhe}" ItemTemplate="{StaticResource Stringa}"> <StackPanel Orientation="Horizontal" > <TextBlock Text="{Binding ID}" Foreground="Black" FontWeight="Bold" FontSize="12" /> <TextBlock Text="{Binding Descrizione}" Foreground="Black" FontWeight="Bold" FontSize="12" /> </StackPanel> </HierarchicalDataTemplate>XamlParseExceptions in the context of telerik RadGridView. These exceptions are caused by a denied access to tmp-files in the users temp-dir (eg: "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp"). System.Windows.Markup.XamlParseException: Die in der Assembly "Telerik.Windows.Controls.GridView, Version=2009.2.813.35, Culture=neutral, PublicKeyToken=5803cfa389c90ce7" definierte Instanz von "FrozenColumnsSplitter" kann nicht erstellt werden. Ein Aufrufziel hat einen Ausnahmefehler verursacht. Fehler in Objekt "PART_FrozenGridViewCellsPanel" in Markupdatei "Telerik.Windows.Controls.GridView;component/themes/office/black/DataCellsPresenter.xaml". ---> System.Reflection.TargetInvocationException: Ein Aufrufziel hat einen Ausnahmefehler verursacht. ---> System.UnauthorizedAccessException: Der Zugriff auf den Pfad "C:\Users\XXX\AppData\Local\Temp\tmp7547.tmp" wurde verweigert. bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bei System.IO.File.Delete(String path) bei System.Windows.Input.Cursor.LoadFromStream(Stream cursorStream) bei System.Windows.Input.Cursor..ctor(Stream cursorStream) bei Telerik.Windows.Controls.GridView.GridViewCursors.get_RefreezeCursor() bei Telerik.Windows.Controls.GridView.FrozenColumnsSplitter..ctor()
--- Ende der internen Ausnahmestapelüberwachung ---
bei System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
bei System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
bei System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
bei System.Activator.CreateInstance(Type type, Boolean nonPublic)
bei System.Windows.Markup.BamlRecordReader.CreateInstanceFromType(Type type, Int16 typeId, Boolean throwOnFail)