When to use the "/" character in the path? I thought that "/" only uses when we work with XML, but today we see an example:
class ViewModel { CollectionView Data {get;set;} } class BusinessObkect { string Name {get;set;} }
The DataContext property of the window is set as an instance of the ViewModel class, the Data property of the ViewModel instance is nitrated using a collection of BusinessObject objects.
if the Text property of the TextBox instance {Binding Path=Data/Name} everything works fine, but if Text = {Binding Path=Data.Name} - a binding error.
When should I use "/" instead of ".". Bound Path?
source share