When to use "/" symbol in path? I thought "/" uses only when we work with XML, but today see example:
class ViewModel
{
CollectionView Data {get;set;}
}
class BusinessObkect
{
string Name {get;set;}
}
DataContext property of the window is set to an instance of the ViewModel class, Data property of the ViewModel instance is niitialized with a collection of BusinessObject objects.
if Text property of TextBox instance
{Binding Path=Data/Name} all works normal, but if Text = {Binding Path=Data.Name} - binding error.
When I must use "/" instead of "." in bindings Path?