Elmish.WPF icon indicating copy to clipboard operation
Elmish.WPF copied to clipboard

Regression or breaking change between beta 40 and beta 42

Open Evangelink opened this issue 4 years ago • 2 comments
trafficstars

High-level description

I have noticed that I am starting to get some binding issues (stack trace below) when moving from beta 40 to beta 42.

Cannot get 'SelectedKeyFrame' value (type 'Object') from '' (type 'ViewModel`2'). BindingExpression:Path=SelectedKeyFrame; DataItem='ViewModel`2' (HashCode=9122323); target element is 'ListBox' (Name=''); target property is 'SelectedItem' (type 'Object') InvalidOperationException:'System.InvalidOperationException: Property path is not valid. 'System.Dynamic.DynamicObject+MetaDynamic' does not have a public property named 'Items'.
   at CallSite.Target(Closure , CallSite , Object )
   at MS.Internal.Data.PropertyPathWorker.GetValue(Object item, Int32 level)
   at MS.Internal.Data.PropertyPathWorker.RawValue(Int32 k)'

The property SelectedKeyFrame is bound to a subModelSelectedItem linked to a subModelSeq.

Steps to Reproduce

I am working on a minimal reproducer but thought it might be worth to open the ticket anyways as the "issue" is contained between 2 commits.

Additional Information Elmish.WPF version: 4.0.0-beta-40 Target framework version: net48

Evangelink avatar Nov 22 '21 17:11 Evangelink

Any progress on a production?

TysonMN avatar Jun 12 '22 03:06 TysonMN

Hi @TysonMN! So sorry, I changed job and totally forgot about this open issue. I don't have the original source code obviously but I will try to see if I can still reproduce something locally (low chance).

Evangelink avatar Jun 13 '22 06:06 Evangelink