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
3 answers

Converting CustomRenderer to CustomHandler in Maui

I have been watching videos and looking up sample code but I am unable to figure out how to do this the right way. [Porting custom renders to handlers] (https://github.com/dotnet/maui/wiki/Porting-Custom-Renderers-to-Handlers) Now I have read the…
Ramttid
  • 33
  • 5
1
vote
1 answer

How to use cellRenderer to navigate to some route?

I am using a AgGrid and want to have a cell with link and I want to navigate to some React route on click of the link. cellRenderer: 'linkColRenderer' For some reason, the below code for linkColRenderer does not work import React from…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
1
vote
0 answers

Is there a way to update child elements in custom renderer

I was creating a custom control it is more like TabPage, where it's derive from View, containing a list of CSMenuItems and foreach menuItem is derived from BaseMenuItem and has menuContent that is derived from ContentView, like this : • CSView •…
1
vote
1 answer

Custom Renderer causes crash of .Net MAUI app

I had to add a custom renderer to my .Net MAUI app (iOS). The app crashes right after the splash screen, and the only error I can see is 2022-09-29 14:41:32.896 Xamarin.PreBuilt.iOS[41370:12914225] Could not resolve assembly…
David Shochet
  • 5,035
  • 11
  • 57
  • 105
1
vote
1 answer

How to center title text of TabBar Tab?

This is a follow-up question, I am using the custom renderer in Shell Custom Renderer reset color set by TabBarUnselectedColor In my .Net MAUI app, I use a TabBar in AppShell:
David Shochet
  • 5,035
  • 11
  • 57
  • 105
1
vote
1 answer

Remove SearchBar text Underline in Xamarin Forms Android while focused/typing

I want to remove the line that appears under the text (not android:id/search_plate) while focused/typing, I haven't been able to remove this. Is this possible? If possible, how could I do it? What should I read to learn to do this? Context: we…
MorenajeRD
  • 849
  • 1
  • 11
  • 27
1
vote
1 answer

Xamarin.Forms : UWP platform : Unable to cast object of type 'Windows.UI.Xaml.Controls.WebView' to type 'Windows.UI.Xaml.Controls.IWebView6'

Xamarin.Forms version: 5.0.0.2401 Windows version: OS Name: Microsoft Windows 10 Enterprise OS Version: 10.0.16299 Build 16299 Platform: UWP (Windows Universal Platform): Reproducibility: 100% Problem occurs each time using WebView with the…
MDIT
  • 11
  • 1
1
vote
1 answer

Xamarin forms Shell Custom Label

I'm playing with the xamarin shell, I would like to insert a descriptive label as the header of the various items. as shown in the picture image description here this is my base code:
1
vote
1 answer

Custom MapBox Android Renderer - crash when change tabs

I am trying to create a MapBox Renderer for Android in Xamarin Forms using the naxam library. The map is displaying well as a content of a view in a tab, however when I change tab several times it crashes on the android emulator. I suppose the…
1
vote
1 answer

JList with Image and text: Where text is coming from an ArrayList

i have a simple example of a JList that is getting it's data from an ArrayList but i want to show an image next to each string in the list. I have written a custom cell renderer (IconListRenderer) that is suppose to display an icon and the object…
Warz
  • 7,386
  • 14
  • 68
  • 120
1
vote
1 answer

How to change DatePicker Ok and Cancel button text in Xamarin forms?

I have an Xamarin.Forms app that supports many languages. How do I show the Calender for the DatePicker with DatePicker Ok and Cancel button text in local language text from resource file? My custom renderer [assembly:…
1
vote
1 answer

On Xamarin Forms Custom renderer android camera, While trying to Zoom In and Zoom Out, Color shades are occurs

In cameraPageRenderer, we handle zoomIn and zoomOut in our application. When we try to ZoomIn and ZoomOut, several color shades shows. Please take a look at this output image as well as the ZoomIn and ZoomOut codes handled in renderer. Any…
1
vote
1 answer

How to open a UIPickerView on click of UITextField's Rightview in Xamrin IOS customrenderer

I have a created a custom Picker with downarrow image at right side using UITextFied in Xamarin ios. When I click the downarrow, the picker is not opening. But when the click centre of the UITextField, the picker is opening. How to open the…
1
vote
2 answers

How to remove visual material entry underline

We are using the visual material entry for our project. using Xamarin.Forms.Material.Android; [assembly: ExportRenderer(typeof(ProgressBar), typeof(CustomMaterialProgressBarRenderer), new[] { typeof(VisualMarker.MaterialVisual) })] namespace…
SoftDev
  • 277
  • 1
  • 3
  • 13
1
vote
1 answer

Shell flyout with round corners

Trying to customize the Shell flyout by setting it corner radius in order to have a flyout with round corners. Since there is no property related to Shell flyout corner radius, is there a way to achieve that with a custom renderer?
Cfun
  • 8,442
  • 4
  • 30
  • 62