AvaloniaUI / avalonia-docs

https://docs.avaloniaui.net/docs/welcome
64 stars 213 forks source link

Update navigate-views.md #434

Open bearyung opened 8 months ago

bearyung commented 8 months ago

the DataContext need to cast to MainWindowViewModel with ((vm:MainWindowViewModel)DataContext) to make use of AddItem method of it

stevemonaco commented 8 months ago

I think this doc needs some additional written details regarding the syntax. This is an introductory tutorial with no prior mention of compiled bindings in its current version, AFAIK, not even for the project setup. It might be ok as a bandaid fix because ToDoList is being rewritten.