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

How can I customize the appearance of top tabs (ShellSection) in Xamarin Shell?

I’ve done a lot of research: How to change ActionBar Tab textStyle? TabLayout Tab Title text in Lower Case https://github.com/Andy671/Dachshund-Tab-Layout/issues/2 https://github.com/NativeScript/NativeScript/issues/2551 However, I couldn’t find…
Pine Code
  • 2,466
  • 3
  • 18
  • 43
3
votes
1 answer

Xamarin.Forms - How to scroll to bottom after ListView is loaded/populated?

I have a ListView which consists of Custom Renderers. I want the user to scroll to the bottom of the ListView on entering the page. Since my content is binded, it seems that OnAppearing is fired too soon (before my ListView is loaded). How can I…
TJP
  • 43
  • 4
3
votes
3 answers

Outlined Textbox in Xamarin.Forms

I want to implement material outlined textbox in Xamarin.Forms. I had created custom renderers but not able to apply style to it. I want text box like this image https://i.stack.imgur.com/7pWPr.png By creating custom renderer and inheriting from…
3
votes
1 answer

JavascriptInterface in Xamarin.Android is obsolete and cant invoke C# from Javascript

few months ago I had a custom Xamarin.Android renderer for a webview based on the sample code in https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/custom-renderer/hybridwebview Javascript code was perfectly invoking my C#…
Abdul
  • 33
  • 5
3
votes
3 answers

Rounded corner for Entry - Xamarin forms UWP

Is there anything possible to customize the radius of Entry to having a slightly rounded corner?
3
votes
1 answer

Xamarin.Forms: create a Rounded/Circle Button from Iconize

I try to create a Rounded/Circle Button that can display font icons. As I already use Iconize in my project, I tried to create the Rounded/Circle Button from the existing IconButton. I first tried this, by fixing BorderRadiusas the half value of the…
Gold.strike
  • 1,269
  • 13
  • 47
3
votes
1 answer

RecycleView Recycling not working properly

I have build a custom renderer for RecycleViews. I have been having one issue and I ran out of ideas of possible fixes, here it is. Whenever the user scrolls the RecycleView, the next items to be displayed in the screen are shown out of order, it…
3
votes
1 answer

Xamarin Forms - How to Make iOS ListView Native Grouped Style With Headers?

I have created a listview in Xamarian Forms using MVVM and binding to create a grouped listview.I would like the listview to have the UITableView Style group which is for iOS. I tried creating this via a custom renderer which I found online, but the…
SolidSnake4444
  • 3,372
  • 6
  • 40
  • 63
3
votes
0 answers

Property Changed not firing in custom renderer when caching strategy is RecycleElement in view Cell renderer

Hi im using xamarin forms shared. i wanna have a custom renderer for my ViewCell in list view and in OnCellPropertyChanged method do something . but when i set the CachingStrategy to RecycleElement this wont work. but before the CachingStrategy it…
mohammad kamali
  • 409
  • 4
  • 12
3
votes
2 answers

Border radius on Entry Xamarin Forms PCL

Is there a way to set a border radius on an Entry in Xamarin's XAML, or by using a custom renderer or something ? Everything I've tried up to now has no effect, but for my application it would be really better if I had round borders. Thank you in…
3
votes
2 answers

Xamarin.Forms.Platform.iOS.ViewCellRenderer.GetCell Exception: Specified cast is not valid

Has anyone experienced the following problem when using a ViewCellRenderer in Xamarin.Forms? I am trying to add a Disclosure Indicator to my Xamarin.Forms custom ViewCell via a Custom Renderer. When base.GetCell(item, reusableCell, tv) gets called…
Brandon Minnick
  • 13,342
  • 15
  • 65
  • 123
3
votes
3 answers

Xamarin : Segmented Control for windows uwp

How can I make a custom renderer for Segmented Control in windows UWP. I followed this link to custom render the segmented control in IOS and android. But I couldn't find anything for windows UWP. Can anyone provide any resource in this or is there…
Himanshu Dwivedi
  • 7,934
  • 3
  • 31
  • 52
3
votes
2 answers

How to change the TableSection text color with a custom renderer - Xamarin.Forms C#

I have a TableView with 3 TableSections in the root: var tableView = new TableView { RowHeight = 60, Root = new TableRoot { firstTableSection, secondTableSection, thirdTableSection, } } var firstTableSection = new…
cfly24
  • 1,882
  • 3
  • 22
  • 56
3
votes
3 answers

p:commandButton action and f:setpropertyactionlistener not invoked in p:columngroup

I need to put child components in primefaces subtable footer (p:columngroup type="footer"), but standard subtable renderer doesn't provide such opportunity. So I have overrided org.primefaces.component.SubTableRenderer to add children…
kalym4ik
  • 108
  • 1
  • 10
2
votes
1 answer

How can you do custom drawing but with a mask?

We have a control which we do our own custom drawing in OnRender. However, we would like to use a PNG with transparency as sort of a stencil for various drawing 'passes' if you will. Now we already know that we can simply use a PNG in an ImageBrush…
Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
1 2
3
28 29