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

Custom Renderer for NavtigationPage causes "requestLayout() improperly called"

I wrote a custom renderer for NavigationPage in Order to reset the hamburger/menu icon with my own icon. I placed the designed icon in all mdpi, hdpi, ... folders. When building the App theres actually a quite big Versin of the Icon chosen and…
Romox
  • 67
  • 1
  • 8
0
votes
1 answer

Xamarin forms - Create complex custom control (create multiple traffic signs)

I have the following screen in an Android project: How can I create controls like this in Xamarin forms? (I really don't want to implement it native).
M Yil
  • 877
  • 1
  • 14
  • 35
0
votes
1 answer

Xamarin.Forms ERR_FILE_NOT_FOUND (file:///android_asset/Content/https://stackoverflow.com) using HybridWebViewSample

I followed the post to create a custon WebView to interact with client JavaScript: https://learn.microsoft.com/es-es/xamarin/xamarin-forms/app-fundamentals/custom-renderer/hybridwebview But when I try to load a page, for example…
Duefectu
  • 1,563
  • 4
  • 18
  • 37
0
votes
2 answers

How can I make this xamarin switch renderer code work?

I'm trying to make this switch renderer work but visual studio doens't recognize CustomSwitch and compilation fails with message "The type 'local:CustomSwitch' was not found. Verify that you are not missing an assembly reference and that all…
0
votes
0 answers

Xamarin.Forms iOS + Android support for native link auto-detection

I am struggling to find the cross-platform answer to native link detection in labels. In Android, it seems to be TextView's AutoLink, which is set up in my custom renderer subclass of LabelRenderer. But in iOS, you have to do it through UITextView's…
dooleyo
  • 872
  • 1
  • 9
  • 13
0
votes
1 answer

Xamarin.Forms: Share a gradient between two Views

I have a custom frame that I have created in Xamarin.Forms that allows for a gradient background. I am trying to create a compound shape from two different Frames both with a gradient background, but I am wanting the gradient to be shared between…
0
votes
1 answer

Xamarin Drag and drop with a drop zone

I am trying to implement drag and drop to create a grammatical exercise in which you have to complete the sentence with the right word, dragging the right answer in the right spot (as shown in figure below). I tried to achieve that by using custom…
0
votes
1 answer

Xamarin Forms view coordinates and Android view coordinates

PREMISE: This Answer does NOT answer my question, here I ask HOW to solve this "conflict problem". I noticed that coordinates of a view in Xamarin Forms are different from the coordinates of the same view taken in Android, something like view.X=150…
Poli97
  • 305
  • 4
  • 18
0
votes
1 answer

Xamarin Custom Renderer Event not Firing from TabbedPage

I have been struggling with a problem for quite some time now, I'm fairly new to xamarin. I have a script containing multiple custom renderers. My first Renderers click event works perfectly, but every other click event does not, they don't even get…
Millar
  • 1
  • 5
0
votes
1 answer

Xamarin FOrms iOS: ImageRenderer CreateNativeControl error

I am trying to implement a custom ImageRenderer in iOS subclassing the native UIImageView, but I am having some problems with CreateNativeControl. In the older Xamarin.Forms version (like 4.2) the custom native class that I initialized with…
Poli97
  • 305
  • 4
  • 18
0
votes
1 answer

How to sort a column with custom renderer in Handsontable?

Handsontable version 0.34.2 (may not be able to upgrade) I have an index page with Handsontable showing customer information. First column is id column. It is a html link. If user click on it will see detail of customer. Table initially is sorted on…
0
votes
0 answers

How to dispatch a Keyboard event in xamarin IOS

I am implementing an app with a customer keyboard, The keyboard was created with all buttons where there is a button for every key, when these buttons are pressed the keyboard event is fired. The app is cross platform and with the following code I…
0
votes
1 answer

Xamarin.Forms physical key press event handling

I'm developing Xamarin Forms app and I need to handle an event when physical button is pressed (on Android). What I've found out is that I can use DispatchKeyEvent inside an activity in Xamarin.Android project. However I don't know specifically how…
0
votes
0 answers

I have created custom jList renderer but i am not able to get the selected cell text

package com; import javax.swing.Icon; public class ImgsNText { private String name; private Icon img; public ImgsNText(String text,Icon icon){ this.name = text; this.img = icon; } public String getName() { …
tejack
  • 1
0
votes
1 answer

Xamarin slider custom renderer DragCompleted event

I am trying to put in function an IOS custom renderer for Slider control. Due to wrapping class SlideriOS the event are not firing and I need DragCompleted event. Somebody has an idea how to trigger/route the event to the control? [assembly:…