Created
January 17, 2022 10:15
-
-
Save sthewissen/e18526c22c3d8f43efc2ec097405b3e6 to your computer and use it in GitHub Desktop.
Grab a native view from MAUI
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if __ANDROID__ | |
ViewHandler.ViewMapper[nameof(IView.BackgroundColor)] = (handler, view) => | |
(handler.NativeView as AView).SetBackgroundColor(Android.Graphics.Color.Green); | |
var textView = crossPlatformLabel.Handler.NativeView as TextView; | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment