Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <TreeView.Resources>
- <HierarchicalDataTemplate DataType="{x:Type xbap:FieldPropertyInfo}"
- ItemsSource="{Binding Path=Value.Values}">
- <TextBlock Text="{Binding Path=Name}" />
- <HierarchicalDataTemplate>
- </TreeView.Resources>
- HierarchicalDataTemplate fieldPropertyTemplate = new HierarchicalDataTemplate("FieldProperyInfo");
- fieldPropertyTemplate.ItemsSource = new Binding("Value.Values");
- this.Resources.Add(null, fieldPropertyTemplate);
- HierarchicalDataTemplate fieldPropertyTemplate = new
- HierarchicalDataTemplate("FieldProperyInfo");
- fieldPropertyTemplate.SetBinding(
- HierarchialDataTemplate.ItemSourceProperty,
- new Binding("Value.Values");
- this.Resources.Add(FieldPropertyInfo.GetType(), fieldPropertyTemplate);
- this.Resources.Add(FieldPropertyInfo.GetType(), fieldPropertyTemplate);
Add Comment
Please, Sign In to add comment