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
1
vote
1 answer

How to add a space between the Tabbar line and the icons in iOS using Xamarin Forms Shell?

I have used ShellRenderer but I am unable to get the code working to add an extra space between the Tabbar line and the icons. Here is an image: I need to increase the space between the gray line and Top of all icons. Here is the code that I have…
Nikhil
  • 3,387
  • 1
  • 8
  • 16
1
vote
1 answer

How to set a background color and text color to an entry cell in xamarin.forms iOS?

I am new to Xamarin forms. Seems like there is no property to set the background color or text color for EntryCell in Table view. Is there a way to customize that when the theme of the iOS is in darkMode? DarkMode changes the text color to white…
1
vote
0 answers

JavaScript CallBack throwing TypeError in Xamarin.Android

I am adding a webview with javascript enabled and also with the javascript interface in my Xamarin.android project. But the moment I try to call the native C# method from javascript I am getting Uncaught TypeError: Cannot read property 'showMessage'…
1
vote
1 answer

How to create scrollview with fading edges in Xamarin forms? (Xamarin.ios)

I already have a custom renderer for scrollview that will create fading edges on Xamarin.android. So my problem now is that my renderer on iOS is not working. Here is what I have: using System; using CoreAnimation; using CoreGraphics; using…
1
vote
3 answers

Xamarin forms Xfx.Controls Exception when page closes

I am using Xfx.Controls in my xamarin forms application for floating label entry. Its working fine on android, but when running on iOS after filling text on floating-point entry and close the page will throw an…
Vidhya
  • 443
  • 8
  • 27
1
vote
1 answer

Xamarin iOS NFC Session is invalidated unexpectedly

Have a Xamarin forms project and trying to hook in NFC reading to the app. Currently plumbing in the iOS native side of things. I've setup all the provisioning and options on the apple portal side of things and i've added the following to the…
Matt
  • 3,305
  • 11
  • 54
  • 98
1
vote
3 answers

CustomPicker Ok and Cancel buttons' color

I have this custompicker class in android project: public class CustomPickerRenderer : PickerRenderer { private Context context; private IElementController ElementController => Element as IElementController; private…
mohammad anouti
  • 171
  • 2
  • 18
1
vote
0 answers

How to register custom cell renderer in pe:sheet?

I am using the sheet extension of the PrimeFaces Extensions and I would like to register custom cell renderer. According to the underlying handsontable.js component this is possible with the following code…
1
vote
1 answer

System.InvalidOperationException: 'Cannot assign a native control without an Element;

I am working on a project "CoManga" and I wanted to add advertisements in it. Implementing ads on UWP seemed straight forward, like Android and iOS. However, I'm stuck now. Anyways, I followed this tutorial by James Montemagno and added everything.…
Xonshiz
  • 1,307
  • 2
  • 20
  • 48
1
vote
1 answer

Web page height correctly rendered with WebViewRenderer, but not with ViewRenderer

There is something different between the default WebViewRenderer and my custom ViewRenderer and I have to find out why. Basically, the web page isn't displayed if I use my custom ViewRenderer. The ViewRenderer has some issues with height: 100%; and…
testing
  • 19,681
  • 50
  • 236
  • 417
1
vote
1 answer

AS3 How to create a custom list item renderer with image(base64 png string) at runtime

I'm a newbie to Flex. I'm trying to create a list with icons. There're a lot of examples but seems all of them are using embedded images. My problem is how can I create the list with icon from base64 png string at runtime?
ThWa
  • 11
  • 2
1
vote
1 answer

Xamarin Forms Android EntryCell Underline

I need to remove the default underline as seen in this image EntryCell Example I have already created a custom Renderer for Android which is working fine on the device. I am able to color the EntryCells along with other UI tweaks. However I need to…
wades
  • 250
  • 2
  • 10
1
vote
1 answer

Xamarin.Forms: Page with CSS transformations and JS swiping doesn't work in Android WebView custom renderer, when it does in Chrome

What could be the cause of a HTML page loaded over HTTPS with CSS transformations and JavaScript that uses “swiping” to not work in a Xamarin.Forms Android WebView custom renderer? The page works fine in: Chrome on Android, Xamarin.Android WebView,…
1
vote
1 answer

Cancel Navigation in TabbarRenderer Xamarin.iOS

I have a custom tabbar renderer for iOS in a Xamarin.Forms app. In certain cases, I need to stop the ItemSelected event. Essentially, if the user taps the item on the tabbar, I need to perform a custom action and NOT navigate. It seems that the…
David Pilkington
  • 13,528
  • 3
  • 41
  • 73
1
vote
1 answer

Xamarin Forms Custom Stepper with 2 buttons and Entry

I implemented this CustomStepper: using System; using Xamarin.Forms; namespace AppXamarin { public class CustomStepper : StackLayout { Button PlusBtn; Button MinusBtn; Entry Entry; …
mohammad anouti
  • 171
  • 2
  • 18