ObservableCollections icon indicating copy to clipboard operation
ObservableCollections copied to clipboard

[ObservableLookup] implementation

Open xperiandri opened this issue 1 year ago • 4 comments

I need an ObservableLookup which implements ILookup<TKey, TValue> interface? Can I contribute it or will you implement it?

xperiandri avatar Jun 28 '24 22:06 xperiandri

I think ILookup is readonly so no observable.

neuecc avatar Jul 01 '24 03:07 neuecc

Even though it is read-only our lookup class can be mutable. The main point is that it has to work like an ObservableDictionary storing ObservableCollections as values

xperiandri avatar Jul 01 '24 17:07 xperiandri

Value changes not be monitoring other types either.

neuecc avatar Jul 02 '24 03:07 neuecc

I have not gotten your point

xperiandri avatar Jul 02 '24 08:07 xperiandri

This is what I implemented

https://github.com/Ecierge/Elmish.Uno/tree/eCierge/src/Elmish.ObservableLookup

from this as a source

https://github.com/xamarin/Xamarin.PropertyEditing/blob/972186e6ddd68566375da7bc336e566196f44307/Xamarin.PropertyEditing/ObservableLookup.cs

xperiandri avatar Jul 06 '24 01:07 xperiandri

Can we port that to you?

xperiandri avatar Jul 06 '24 01:07 xperiandri

What do you think?

xperiandri avatar Jul 14 '24 10:07 xperiandri

From what I see, you are still adding a mutable type called IMutableLookup, right?

neuecc avatar Jul 17 '24 08:07 neuecc

In my sample, I do. However, it is not mandatory

xperiandri avatar Jul 17 '24 21:07 xperiandri

Any thoughts?

xperiandri avatar Aug 08 '24 16:08 xperiandri

not positive.

neuecc avatar Aug 14 '24 11:08 neuecc