michaellperry / Assisticant

MIT License
36 stars 19 forks source link

Accessing ViewModel this[] property in binding #27

Open username-not-important opened 7 years ago

username-not-important commented 7 years ago

Hi,

I have a viewmodel that has a property like: public string this[string area] => _areaNotifications[area];

In XAML I use: Text="{Binding Path=[Dashboard]}"

This works in Design mode and creates the desired looks, but in runtime Text property is null!

michaellperry commented 7 years ago

Sorry it took so long to get back to you. I haven't tried using indexers in view models with Assisticant before. Let me dig in to that usage and see what I can do about it.