Thanks for your answer.
I have the following classes
Public Category
{
public Int64 Id { get; set; }
public string Name { get; set; }
public Int64? Parent_CategoryId { get; set; }
public virtual Category Parent_Category { get; set; }
public virtual ICollection<Item> Items { get; set; }
public virtual ICollection<Category> Child_Categories { get; set; }
}
public class Item
{
public Item()
{
}
public Int64 Id { get; set; }
public string Name { get; set; }
public Int64 CategoryId { get; set; }
public virtual Category Category { get; set; }
}
I have a form with the following controls
1) <GridTreeControl x:Name="gdCategories" ItemsSource="{Binding Categories}" ChildPropertyName="Child_Categories" />
2) <GridDataControl x:Name="gdCategoryItems" />
I load the items from db and I bind the items to view (this.DataContext = new { Categories = dbCategories };
The tree items are displayed ok.
I want every time i click on new row on GridTreeControl to bind the selected Category.Items to GridDataControl
How can I achieve this in XAML binding (only binding without events).
Thanks