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
5
votes
2 answers

Using Google Maps on Xamarin.Forms for Android

So we need to create an app that renders a map and we are currently using Xamarin.Forms to integrate it. However, we will not use Xamarin.Forms.Maps since we have to use the Google Maps API for iOS and not its native map which is MapKit. My question…
5
votes
1 answer

CellRenderer - Making text bold

How to make the text in JTable bold, I tried the following, It does work for colours but for making the text bold i'm going wrong somewhere class ColourRender extends DefaultTableCellRenderer { public Component…
5
votes
1 answer

Custom renderer for PrimeFaces component works fine in Tomcat, but not in Websphere

I'm using MyFaces 2.1.9 and PrimeFaces 3.5. I've implemented a custom renderer for . This works fine at home with Tomcat. But this does not work at work with Websphere. I've placed breakpoints in the custom renderer class, but they are…
KOT
  • 1,986
  • 3
  • 21
  • 35
4
votes
1 answer

How to resolve Vue 3 custom renderer error

I'm trying to build a custom renderer using Vue 3 and Vite. The renderer is working in its original repo (clone that repo, npm install, and npm run dev), but failing when I publish that renderer and install on another project. To recreate,…
Sander Moolin
  • 450
  • 4
  • 11
4
votes
1 answer

Set CursorPosition in Editor Xamarin Forms

How can we set CursorPosition in Editor. We can set CursorPostion in Entry, but how to set it in Editor? I know we can do it using Custom Renderer in Xamarin Forms, but how to implement it?
Junaid Pathan
  • 3,850
  • 1
  • 25
  • 47
4
votes
1 answer

UICollectionView repeating and showing items out of order

I have build a custom renderer for UICollectionView. I have been having one issue and I ran out of ideas of possible fixes, here it is. Whenever the user scrolls the UICollectionView, the next items to be displayed in the screen are shown out of…
4
votes
2 answers

Custom search bar with rounded corner xamarin forms android

Custom searchBar renderer with Rounded corner : iOS protected override void OnElementChanged(ElementChangedEventArgs e) { base.OnElementChanged(e); var searchbar = (UISearchBar)Control; …
Riyas
  • 475
  • 1
  • 8
  • 27
4
votes
1 answer

How to make a progress bar with rounded corners in Xamarin Forms using Custom Renderer

I want to display progress bar with rounded corners in Xamarin forms. I was able to do it in iOS using a custom renderer: class CustomProgressBarRenderer: ProgressBarRenderer { protected override void…
4
votes
1 answer

xamarin renderer invalid cast

In order to be able to create a styling that needs to be done natively in the Xamarin environment, I am using a custom renderer. On the android side, I am receiving an System.InvalidCastException, and I do not know how to fix this issue. I am…
R293
  • 53
  • 6
4
votes
1 answer

Xamarin.Forms - possible to add padding to label using custom renderer? (iOS)

Is there a way to add padding to a label using a custom renderer? I know you can cheat by adding a content view around the label and adding padding to the content view; but I want to keep the UI cleaner and not have to add an extra element. Just to…
jbyrd
  • 5,287
  • 7
  • 52
  • 86
4
votes
3 answers

Xamarin Forms - Load image in a Button

I looked extensively online but I couldn't find anything really specific to help me out in this trouble I am having. I am trying to make a custom renderer for a Button component, in Xamarin forms. Why am I not using the XLabs ImageButton component?…
Guido Magrin
  • 551
  • 3
  • 7
  • 20
4
votes
1 answer

Xamarin.Forms DatePicker Date Format

With Xamarin Forms it's possible to set the date format in a DataPicker in Xaml or in code as in the example below: datepickerInstance.Format = "MMM yyyy"; or datepickerInstance.Format = "yyyy"; The format is fine for the value in the TextEntry…
YARG
  • 41
  • 1
  • 3
4
votes
0 answers

Custom renderer which extends PrimeFaces DataTableRenderer is not invoked

I'm trying to extend the PrimeFaces 1.0 (yep, sadly we are stuck at JSF 1.2) data table, because I want the built-in filter function to search in the whole field, instead of only at the beginning. So I created a class which extendes…
Nicola Isotta
  • 202
  • 3
  • 10
3
votes
0 answers

Swipe between tabbar pages in Xamarin Shell

I use bottom menu and disable flyout. For IOS I needed to add swipe gesture to shell. I used custom render. How to add swipe animation? On Android for tabbed page it works out of box. I need something similar for Xamarin Shell tabbar menu. I thought…
3
votes
1 answer

Get the type of calling ContentPage of a PageRenderer within a ExportRenderer

I have been following this answer in order to tell if me when my Xamarin Page has loaded. https://stackoverflow.com/a/63592259/560476 The rough idea is that once the PageRenderer has attached to the Window it will fire the PageLoaded message on to…
metoyou
  • 639
  • 1
  • 7
  • 22
1
2
3
28 29