You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the MV-converter in an UWP ListBox control everything works fine.
However, I switched to using a ListView where an "empty placeholder rectangle" is used in the virtualization mechanism the short time the actual ListViewItem (with it's binded data) is loaded. This is to make e.g. scrolling smoother. But then I get the following exception:
Exception {System.NullReferenceException: Object reference not set to an instance of an object.
at System.Object.GetType()
at WinRTMultibinding.Foundation.Data.Binding.CheckIfBindingModeIsValid(Object source, String path, BindingMode mode)
at WinRTMultibinding.Foundation.Data.Binding.SetBinding(Object source, Boolean shouldRaiseOnSourcePropertyValueChanged)
at WinRTMultibinding.Common.Extensions.CollectionExtensions.ForEach[T](IEnumerable1 source, Action1 action) ....
Well somehow it's logical, since the actual source that's going into the converter isn't loaded yet.
Any idea how to get around or solve this?
Trying to set UpdateSourceTrigger="Explicit" in order to prevent converter to run until source is loaded didn't help.
Many thanks.
The text was updated successfully, but these errors were encountered:
When using the MV-converter in an UWP ListBox control everything works fine.
However, I switched to using a ListView where an "empty placeholder rectangle" is used in the virtualization mechanism the short time the actual ListViewItem (with it's binded data) is loaded. This is to make e.g. scrolling smoother. But then I get the following exception:
Exception {System.NullReferenceException: Object reference not set to an instance of an object.
at System.Object.GetType()
at WinRTMultibinding.Foundation.Data.Binding.CheckIfBindingModeIsValid(Object source, String path, BindingMode mode)
at WinRTMultibinding.Foundation.Data.Binding.SetBinding(Object source, Boolean shouldRaiseOnSourcePropertyValueChanged)
at WinRTMultibinding.Common.Extensions.CollectionExtensions.ForEach[T](IEnumerable
1 source, Action
1 action) ....Well somehow it's logical, since the actual source that's going into the converter isn't loaded yet.
Any idea how to get around or solve this?
Trying to set UpdateSourceTrigger="Explicit" in order to prevent converter to run until source is loaded didn't help.
Many thanks.
The text was updated successfully, but these errors were encountered: