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

Overriding PrimeFaces renderer not working when provided via module library

I have a very tricky problem when overriding JSF-renderers. This is a part of my faces-config.xml:
Rokko_11
  • 837
  • 2
  • 10
  • 24
0
votes
1 answer

[xamarin][uwp][custom renderer] custom renderer pcl libarary not loading in release mode

I created PCL library to keep all custom renderers for UWP. This PCL added to another cross platform application. its working in debug mode. But working in release mode. need help regards Sumith
sumith
  • 29
  • 1
  • 7
0
votes
1 answer

Xamarin.Forms.Maps custom polyline renderer does not render when in view

I am trying to follow this guide in order to draw a polyline on a map in a Xamarin.Forms app. It should track the user's position in real-time and update the polyline when new position data comes in. I wrote a custom map renderer that will render…
Steztric
  • 2,832
  • 2
  • 24
  • 43
0
votes
1 answer

Xamarin.Forms - Possible to write custom renderer using original element name?

In Xamarin.Forms, typically I'd write a custom renderer for buttons using a class name like "ButtonExt". Is it possible to write a custom renderer using the original name of (I guess overriding) the element, like "Button"? Basically, I want to be…
jbyrd
  • 5,287
  • 7
  • 52
  • 86
0
votes
1 answer

Gradient background for button - Custom Renderer

I have problem with make a Custom Renderer for Button with gradient background in Android project. On iOS I used this code: public class CustomButtonRenderer : Xamarin.Forms.Platform.iOS.ButtonRenderer { public override void…
bigjoe1
  • 117
  • 1
  • 12
0
votes
1 answer

xamarin.forms access viewmodel property from custom renderer

I have a custom PageRenderer with a layout which include a ListView. Droid project layout MatchPage.xml:
Longa
  • 364
  • 4
  • 16
0
votes
2 answers

FindViewById on Android Subpage (using Xamarin.Forms)

I'm developing a cross-platform app using Xamarin.Forms. As I want to set the background of my TabLayouts to a gradient, which isn't natively supported by XF, I've written a custom renderer for my TabbedPages: using Android.App; using…
0
votes
2 answers

Error with Droid Custom Picker Renderer in Xamarin.Forms

I've created a Custom Picker Renderer in my Xamarin.Forms application, on IOS it works fine but it crashes when I run Android. I've already updated Visual Studio 2017 and I'am running Xamarin.Forms 2.3.4.247. Target Android Version is set to 7.1…
0
votes
1 answer

Binding OneWayToSource in C#

I'm currently trying to receive the DateTime from a Xamarin.Forms.TimePicker. I just want to populate the model which is a DateTime pickerTime variable. This variable will be populated by whatever is in the TimePicker view. Therefore I need to do…
B Best
  • 1,106
  • 1
  • 8
  • 26
0
votes
2 answers

Xamarin forms, RecyclerView, cell rendering from xaml

I want to create control in Xamarin.Forms that uses native android RecyclerView as renderer. My problem occurs when i try create cell that contains labels or other controls with HorizontalOptions different than: Default, Fill and FillAndExpand. That…
0
votes
1 answer

Xamarin Android Custom ImageRenderer Canvas.DrawBitmap flipping image

I have two images: one that is an empty jar, and one that is the same jar but with a fill. My goal is to use a custom renderer to draw the empty jar, do a calculation of the percentage, and then copy a subset of the full jar onto the empty one to…
w0f
  • 908
  • 9
  • 23
0
votes
1 answer

Xamarin Forms renderer not responding to event change

I am quite new to Xamarin forms and the custom renderer part. I have written a custom renderer for datepicker and the same is being used in xamarin forms. Below is the code of my XAML , ViewModel and renderer classes. XAML…
0
votes
3 answers

Xamarin Forms iOS CustomRenderer not repainting

I have a custom renderer to display HTML formatted text in a UITextView. If I hard-code the text into the constructor of the page that contains the control (so it gets set in the custom control's OnElementChanged event), it displays fine. If I…
Christine
  • 562
  • 3
  • 19
0
votes
1 answer

Xamarin.Forms Wysiwyg: move project from Xamarion.iOS to Xamarin.Forms using custom renderer

I want to build a wysiwyg editor as a custom component using Xamarin.Forms renderer. I found some solution which is a Xamarin.iOS project which does something I need: https://github.com/XAM-Consulting/TEditor. I followed mentioned example and…
Alexander
  • 267
  • 3
  • 3
0
votes
1 answer

Get current view for Android in cross-platform (Xamarin)

How can I get current view/layout in Android Xamarin by CustomMapRenderer class? I want to add view in current layout at specific position. In iOS I am doing it by following lines: UIView XView; XView.Frame = new…