All the same basically applies, but make sure to use the EditorHandler instead of the EntryHandler and of course inherit from the Editor if you want to use it only on one type. I've created a little sample here: and written more about it in a blog post here: Įdit: oops, just noticed that this is about the Editor. Mapper.AppendToMapping("CursorColor", (handler, view) => For instance, that would look like this: class MyGreenEntry : Entry If you want to do this for a specific instance of an Entry you want to create an inheritance and check for that in the above code. Place this anywhere you like somewhere in the startup of your app. If you want to do this for all Entry controls in your app, you can do this: .Mapper.AppendToMapping("CursorColor", (handler, view) => The official docs on how to do that can be found here. What you want to do is create a modify the mapper. That only exists for compatibility reasons with Xamarin.Forms. While renderers (from the other answer) still work, you shouldn't be using it anymore.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |