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
2
votes
1 answer

Gradient as a Buttons BorderColor Xamarin Android?

I am trying to Create a Button with Gradient Border Color in Xamarin Forms, i find the solution below to IOS but I can't find anything for android, can someone help me? Gradient as a Buttons BorderColor?
2
votes
0 answers

How to set badge counter above the toolbaritem in Xamarin.Forms?

I am creating an application where I need to implement a badge counter above the icon in ToolbarItem. I am creating a dependancy service for IOS and Android. I reference this URL. After implementing this I am getting a perfect result in Android, but…
Deep Soni
  • 431
  • 4
  • 24
2
votes
1 answer

Update State of React Component from ag-grid Custom Renderer

I need to update the state of React Component from Custom Rendered Component of Ag-grid. I hae tried to setState() in custom component but it says setState() is not a function // function to act as a…
Arshad Munir
  • 121
  • 2
  • 12
2
votes
1 answer

How to create a Xamarin.Forms custom renderer, where the renderer base class uses generics?

I have a base class, which looks like the following public class DialogSelectionItem : ViewCell Now I want to attach a custom renderer to it: [assembly: ExportRenderer(typeof(SomeApp.CustomRenderers.DialogSelectionItem),…
testing
  • 19,681
  • 50
  • 236
  • 417
2
votes
0 answers

How Prevent soft keyboard from showing on Entry focus - xamarin forms UWP

I am using an custom entry that will shows a popup when Entry focused, so there is no need of soft keyboard, as of now the keyboard just popping up on the screen and then hiding. How to prevent the soft keyboard without event showing up when Entry…
2
votes
1 answer

How can I set and get a selected value in my custom picker? The value is not changeable

How can I get the selected item of my custom picker? It always goes back to the initial state "Sonstige" (= "Other"). So the value is not changeable. I'm facing the problem for hours but have no further idea on how to fix it. I'm new to custom…
2
votes
1 answer

How to create progress bar with rounded corners / Edge in Xamarin forms

I need the expert help. I am struggling to create the ProgressBar with rounded corner in Xamarin Form. I have searched on google and found the couple of post by using the layer property ex. "Layer.CornerRadius = 5" but my code does not support…
skt
  • 449
  • 14
  • 32
2
votes
0 answers

react custom renderer - extend react-dom

I wanted to write a custom renderer for react. I want to use it one the web so it doesn't make sense to rewrite the whole thing since react-dom already exists. Is it possible to write a custom renderer by just extending react-dom and only…
Mukesh Soni
  • 6,646
  • 3
  • 30
  • 37
2
votes
1 answer

How to display a label with small caps font style in Xamarin Forms iOS?

My designer for our Xamarin Forms app specified Small Caps for a label field. There are several discussions on how to do this in Xamarin for Android, but I can't find anything for iOS. I know I will need a custom renderer and have found a good…
Steve Reed Sr
  • 2,011
  • 3
  • 18
  • 22
2
votes
2 answers

Custom Label renderer not set binded text

I have create a custom renderer for label that show the text in html format. This is the iOS's code: [assembly: ExportRenderer(typeof(LabelHtmlView), typeof(LabelHtmlCustomRenderer))] namespace SgatMobileV2.iOS { public class…
Hikari
  • 589
  • 7
  • 29
2
votes
0 answers

Xamarin CustomRenderer in ListView

I have a ListView that have a custom view inside it ViewCell. This custom view is a Label that render an HTML content. All works, except when a ViewCell exit from the screen the label lost th HTML format and show the HTML tags. This is the custom…
Hikari
  • 589
  • 7
  • 29
2
votes
1 answer

Xamarin & MVVM How to?

Hi i'm new to Xamarin and I was advised to use pure MVVM because my code was a little bit of a mix between MVVM and just nothing at all. I looked at this examples: Example1 Example2 But I still can't properly define in my code what is the Model,…
Tiago_nes
  • 843
  • 7
  • 30
2
votes
1 answer

Picker layout changed when you apply a renderer

Why is Picker's layout being so altered when I apply a custom renderer? layout after applying Renderer: How to leave the original layout but applying a custom renderer? And also the confirm button are not showing up anymore. They are white, if you…
Luiz Negrini
  • 656
  • 10
  • 32
2
votes
1 answer

Magento 2 custom rendered data not exporting

I have created custom grid. All data is displayed in grid as expected. I need to export grid data in csv. data from main table is exported but its not exporting custom rendered data. e.g all following columns in my listing.xml are displaying right…
Meshan Raza
  • 89
  • 2
  • 13
2
votes
1 answer

Xamarin Custom Renderer for Button (iOS)

I've declared a custom renderer for iOS (and Android - working fine). The custom renderer is primarily setting the background color and text color. Setting the text color works fine for the enabled and disabled states, but I'm having trouble setting…
Bejasc
  • 930
  • 1
  • 8
  • 20