-
DescriptionI just upgraded Visual Studio to access 8.0.7 and I notice now that the code:
Now returns
I note a workaround which still allows you to access these:
But this seems strange. What is WrapperView and why does Image.ToPlatform return it? Are we supposed to retrieve the native image controls from inside that? Thanks for any correction or fix. Version with bug8.0.7 SR2 Is this a regression from previous behavior?Yes, this used to work in .NET MAUI Last version that worked well8.0.3 GA Affected platformsiOS, Android, Windows |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
WrapperView will sometimes get added when we have to add various clipping and interaction features. We have Generally ImageHandler imageHandler = imageView.Handler as ImageHandler;
NativeImageViewType nativeImageView = imageHandler.PlatformView Is preferred if you are just wanting to access the platformView. We mainly use "ToPlatform" when we are going to generate a platform view from an xplat view. |
Beta Was this translation helpful? Give feedback.
WrapperView will sometimes get added when we have to add various clipping and interaction features. We have
ToPlatform
return the wrapper view because that's the view we are interested in when adding the view to the layouts.Generally
Is preferred if you are just wanting to access the platformView.
We mainly use "ToPlatform" when we are going to generate a platform view from an xplat view.