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

Shell TabBar rounded corners override default background color (View) behind

I'm applying rounded corner on a Shell TabBar like in Xamarin Forms Shell TabBar Rounded Corner. My question: is it possible to put the view (background color) behind instead of above (default black color)?
ArthurCPPCLI
  • 1,072
  • 7
  • 18
1
vote
0 answers

LayoutChildren method is not called in custom control after upgrade to Xamarin.Forms 5.0

I have created a custom control which is extended from ContentView in Xamarin.Forms. I have layout the Content for some scenario using LayoutChildren override method in Forms. This is working fine up to XF version 4.8. After upgrade to Xamarin.Forms…
Bharathi
  • 1,288
  • 2
  • 14
  • 40
1
vote
0 answers

Image from Camera Preview using Customer Renderer is not clear

I've followed this article and implemented a Customer Renderer that's used to display a preview video stream from the device's camera. I intend to capture a frame from the live stream and feed it into Tesseract OCR in order to read a number printed…
Giorgos Betsos
  • 71,379
  • 9
  • 63
  • 98
1
vote
1 answer

In Forms UWP, back navigation with content view in custom title view not working correct with custom renderer

Description When using custom renderer for the content view. It throws "Element is already the child of another element" while converting the content of the content view to the content presenter using the content control. Steps to Reproduce Run the…
Ragul S V
  • 139
  • 6
1
vote
1 answer

How can I center the the flyout items of a Xamarin Shell application?

I’d like to customize the look of the flyout of my Xamarin Shell application to vertically center its items. The Microsoft docs shows how to customize some aspects of the flyout itself, but these settings can’t manipulate its look so that I can…
Pine Code
  • 2,466
  • 3
  • 18
  • 43
1
vote
0 answers

Xamarin.Forms.Shell: is it possible to use a custom NavigationPage with Shell?

I work on a Xamarin.Forms.Shell app containing 4 tabs. On the main tab, I have: a NavigationBar through a TitleView containing a logo a ScrollView containing an Image as background's header a ScrollView containing the main content, that can cover…
1
vote
0 answers

Append a control above/upper to the Shell App bar without altering it

I am trying to add a layer that can be any control (for example let's take a Label) above the Shell App bar (Navigation bar), so that it will be available on all pages. For this I tried to use TitleView, which obviously won't fulfills my requirement…
1
vote
2 answers

How to set a static height and width for a UIImageView in xamarin iOS

So i'm working on a CustomRenderer for a Picker in which i need an image to the right side of the picker, i was able to do that, but the image size is too big, how can i set a static size to it, i tried doing this, but i'm not sure if i'm on the…
Venky
  • 1,929
  • 3
  • 21
  • 36
1
vote
0 answers

how to programmatically select text in a Xamarin Forms Editor

New-ish to Android and Xamarin, working in VS 2019, Xamarin Forms v4.8 ... In my project, I have implemented a custom renderer for an Editor that provides a read-only Editor in which the user can select and copy text. Works great, with customized…
Blaise
  • 21
  • 7
1
vote
2 answers

Custom Picker Xamarin Android

I have a picker.Please,tell me how to change color of title, the color of items and remove these lines I have my custompicker and I could change colors of buttons CANCEL,OK I tried to remove…
1
vote
0 answers

Xamarin.iOS WKWebView and WKNavigationDelegate custom renderer Intranet SharePoint links not working

I am working on one Xamarin forms app and I have created custom renderer to use native web views. We have some intranet SharePoint URL links in web view content which is not working in iPhone real device. The public URL links are working fine but…
1
vote
0 answers

App crashing in Cat S48c android device when clicked on Custom Entry field

Xamarin app is running fine in every physical & Virtual device we have access to without any crash. But our client has an android device: "CAT s48c" , in which whenever he is clicking on CustomEntry field,the whole app crashes. below is the crash…
1
vote
2 answers

iOS custom render not apply corner radius

I've created a custom render based on some googling that will allow a Frame to have full control over all of its corner radii (left, top, right, bottom). However, even though it is set to be 60, 60, 0, 0 I don't see it respecting those criteria. On…
SomeStudent
  • 2,856
  • 1
  • 22
  • 36
1
vote
1 answer

how to implement "Soft Keyboard Input Mode" and fix keyboard overlap issue in Xamarin.Forms iOS?

I am facing trouble to implement "Soft Keyboard Input Mode" and fix keyboard overlap issue in Xamarin.Forms iOS app. The following solutions that I have tried: Scroll View: Which is not work for me because I am already using one scroll view in my…
Sulay Joshi
  • 195
  • 2
  • 9
1
vote
1 answer

How can I replace the SearchBar icon in a Xamarin.Forms custom renderer for GTK?

I am working on a Xamarin project that includes a build for GTK. I am attempting to create a custom renderer for many of the Controls, but am having trouble finding, accessing and changing the properties for the control. For example, I would like to…
Blake Simmons
  • 426
  • 1
  • 8
  • 23