question

AndrewHokeCr avatar image
0 Votes"
AndrewHokeCr asked LeonLu-MSFT edited

ItemsSource set in a ResourceDictionary Style is not actually binding on the styled view

I'm unsure if I've found a limitation of Xamarin.Forms binding via styles, or if I'm misusing the style system.

I have a Picker that receives a style from a ResourceDictionary including the ItemsSource property which is set to a Binding to a VM property. If I move the ItemsSource property to a regular XAML element attribute declaration, the collection is properly rendered in the Picker when opened.

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Could you share related code that could reproduce this issue? And I do not know about Picker that receives a style from a ResourceDictionary including the ItemsSource property, do you mean a style that use background C# code or native Android style?

0 Votes 0 ·

0 Answers