Questions tagged [custom-renderer]

Custom Renderers let developers 'override' the default native rendering behaviour in Xamarin.Forms.

From the docs:

Xamarin.Forms user interfaces are rendered using the native controls of the target platform, allowing Xamarin.Forms applications to retain the appropriate look and feel for each platform. Custom Renderers let developers 'override' this process to customize their Xamarin.Forms code on each platform.

427 questions
0
votes
1 answer

How do I get the MotionEventActions.Up to get called?

I have written an Android custom renderer to handle touch events. I am able to handle the MotionEventActions.Down event successfully but the other events aren't getting called within the renderer. I am trying to handle both MotionEventActions.Down…
0
votes
1 answer

Xamarin IOS Custom Renderer overriden Draw method not called

I am trying to load a customized slider control in a listview (with accordeon behaviour). When the View loads all the listview elements are collapsed so the slider control visibility is false. I observed that the overriden Draw method within the ios…
0
votes
0 answers

Xamarin forms UWP - Listview showing black background while loading viewcells

While loading Listview with data the black background is showing to load every single view cell. Does anybody know to change the color or remove that style? I have tried to load the Listview from code-behind also. Is there any way to customize…
Riyas
  • 475
  • 1
  • 8
  • 27
0
votes
1 answer

JTable cell renderer set backround using other cells background

I've a JTable with a custom cell renderer to highlight the cell if there is a new chapter online. DefaultTableCellRenderer : static class CustomRenderer extends DefaultTableCellRenderer { public Component getTableCellRendererComponent(JTable…
TheDoctor
  • 2,362
  • 4
  • 22
  • 39
0
votes
2 answers

Android toolbar menu Xamarin Forms custom renderer [NOT RESOLVED]

I am new to custom renderers and can only do basic things like customizing entries, pickers etc. I am really trying to implement an android toolbar menu into my navbar on x.forms and I know I will need to do this through a custom renderer. I just…
steve
  • 797
  • 1
  • 9
  • 27
0
votes
0 answers

Datepicker localization for Xamarin Forms Android

Anyone can share them a workaround for this bug, I also need to implement the Localization for Datepicker, I implementing the Localization in this link…
0
votes
1 answer

How to develop Horizontal scrolling calendar in Xamarin Forms?

I would like to develop my calendar view as in image. Is it possible with customizing datepicker?
0
votes
1 answer

Xamarin.Forms: close DatePicker in code, when custom renderer is used

I have a custom DatePicker, which is opened if the user taps on it. It uses the same mechanics like the Xamarin.Forms DatePicker. The scenario is like the following: user taps on the custom DatePicker instead of picking a date he opens another…
testing
  • 19,681
  • 50
  • 236
  • 417
0
votes
1 answer

Is it possible to create a multi-platform custom user control without having to use custom renders in Xamarin.Forms?

I'm pretty new to Xamarin in general, and I'm working with Xamarin.Forms. I need to create single reusable controls/ui components that look the same across both Android and iOS. Take the following image as an example: I need a button that looks…
adamasan
  • 1,092
  • 1
  • 12
  • 33
0
votes
1 answer

Xamarin Forms MapRenderer OnMapReady event equivalent for iOS?

I need an equivalent event for an iOS renderer: public class MyMapRenderer : Xamarin.Forms.Maps.Android.MapRenderer { ... protected override void OnMapReady(GoogleMap map) { base.OnMapReady(map); // need to do things…
0
votes
0 answers

Custom font does not load on Xamarin.iOS through custom label renderer

I am currently trying to change the font for my Xamarin.Forms application by creating a custom renderer for all of the labels within my app. There seems to be an issue that in some locations the text is changing to the correct font but in the…
0
votes
1 answer

Xamarin.Forms: Is there an event to indicate that Custom Renderer has executed?

I'm trying to address a shortcoming in an open source Xamarin.Forms control which uses custom renderers. The issue is that I can only set certain properties on the control after the custom renderer has run. I'm just not sure when that would be. Is…
dythim
  • 920
  • 7
  • 24
0
votes
2 answers

Bindable Property is not updating view on iOS

I am creating a cross platform app on xamarin.forms. I needed a custom renderer with gradient background and i've created it and it works well on both android and ios. However, when i want to change the colors of the gradient background, it does not…
0
votes
0 answers

Custom Picker Firing twice after entry field

i have entry field and some pickers , The picker is a custom picker . When i enter some text into the entry field then click on the picker it fires twice , so when i click on an item the picker popup window remains and till i click cancel or select…
Anthony Horter
  • 45
  • 1
  • 12
0
votes
1 answer

How to change xib's size in Xamarin.iOS designer?

I implemented a CustomRenderer to display a native UIView (which makes use of a xib/nib file) on iOS within my Xamarin.Forms architecture. I followed this tutorial to implement a CustomRenderer for a CustomView in Xamarin.Forms and this tutorial to…
pschlz
  • 173
  • 1
  • 12