How to deal with state shared across Components?
Hi, given that you can choose the best approach that fits better for your project here are 3 different ways to achieve it in MauiReactor/C# that I can think of:
Pass global state/parameters down to your component tree. For example, say you have a class that resembles your settings pass it down to your components:
Use dependency injection to "inject" your global state/parameters:
Use the "Parameters" feature provided by MauiReactor: it allows you to create a Parameter in a parent component and access it in read-write mode from child components:
for more info on this specific feature please take a look at:
https://github.com/adospace/kee-mind (KeeMind app makes extensive use of this feature)
PreviousSource and Sample ApplicationsNextDoes this support ObservableCollection for CollectionView?
Last updated