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
0
votes
0 answers

WKWebView open popup facebook auth window but dosen`t login Xamarin IOS

I am making a cross-platform hybrid app, basically rescuing a website in IOS, with Xamarin. The problem is that within this website there is a "Login with Facebook" section and this is an API, it is NOT a JavaScript "window.open" method. I would…
0
votes
1 answer

Xamarin.Forms: how to center an Image in TitleView when ToolbarItems are displayed?

I'm working on a Xamarin.Forms.Shell app containing 4 tabs. I would like to display a common Title containing a centered SVG logo on all these pages. For this, I can use a TitleView like this:
0
votes
0 answers

How to hide the scroller in a Xamarin Forms Custom PickerRenderer

Not sure if it is a Xamarin IOS bug but on the same panel we have a custom control that pops a modal view of choices(like a picker) and a standard Xamarin Forms Picker. If the standard picker is displaying the scroller at the bottom and then then…
0
votes
0 answers

Xamarin custom renderer with different parent control

So want to render out of box CarouselView when Android and CarouselViewFormsPlugin when iOS. I know can accomplish this in xaml using onplatform but don't want to have to do that in several places. Can this be done using custom Renderer like…
Maxqueue
  • 2,194
  • 2
  • 23
  • 55
0
votes
1 answer

How to get the TextColor value of a TableSection in my ViewModel Renderer in Xamarin

I am using the code below to make the Text in the TableSections of my CustomTableView Blue (DodgerBlue to be specific) and also make the Text Bold. assembly: ExportRenderer(typeof(CustomTableView), typeof(CustomTableViewRenderer))] namespace…
Kikanye
  • 1,198
  • 1
  • 14
  • 33
0
votes
1 answer

Get the height of the ContentPage in Xamarin Forms using CustomRenderer

I want the height of the NavigationBar, tried using CustomRenderer but always gets the same value whether it is Tablet, Android phone. I am using the following code namespace OfflineFieldService.Droid { public class CustomAndroidPageRenderer :…
0
votes
0 answers

AutoSize Label with a Formatted Text not working on Android

I am trying to implement the autofit option in the label, i.e. reduce the font size of the label to fit in the same line. Tried using effects and custom renderers as well. Works fine on iOS but not on Android. According to this blog the…
ssn
  • 11
  • 3
0
votes
2 answers

How to change transparency of "Xamarin.Forms Material Visual" disabled button?

I would like to change the transparency level of disabled button. Disabled Button View Enabled Button View [assembly: ExportRenderer(typeof(LabelButton), typeof(SkyRacing.Droid.LabelButtonRenderer))] namespace SkyRacing.Droid { public class…
0
votes
1 answer

How do you implement a custom renderer for webview (which is displaying raw html elements on the page) in Xamarin.Forms.iOS?

I am using WebView in Xamarin.Forms to display html. It's not displaying entire html pages-- just the content which would normally be in the "body" section of an html page (i.e.

Hello

). However, when the webview is displayed on the page,…
0
votes
1 answer

Xamarin Android: Issues with Custom Keyboard Of Custom Renderer - Appears Underneath Controls, Keys Not Pressable, etc

I am creating a custom control that has a custom keyboard. I have faced several issues. I am using Visual Studio Community 2019, and I'm using Android_Accelerated_x86_Oreo (Android 8.1 API-27) as my Android emulator. In summary, I need to style…
Dunnomuch
  • 223
  • 1
  • 2
  • 11
0
votes
2 answers

How to create standard design of ios switch on android?

I want to create a custom switch on android which looks like standard ios switch. Please help me do it
0
votes
1 answer

How can I fix Error with SelectionDividerHeight?

Please help me with this error Java.Lang.NoSuchMethodError: 'no non-static method "Landroid/widget/NumberPicker;.setSelectionDividerHeight(I)V"'
0
votes
0 answers

xamarin form android custom renderer : overlay two pages

I am trying to overlay two xamarin pages on top of each other, one as the main, the other as a preview that can be expanded if needed. Akin to a spotify mini player that stays on top of the NavigationPage contents. I have a custom page renderer…
Florian Doyon
  • 4,146
  • 1
  • 27
  • 37
0
votes
1 answer

To dismiss the keyboard upon entering the last OTP digit

I am working on a concept which has a OTP screen. The requirement is to dismiss the keyboard automatically upon entering the last digit of the 6 digit OTP number. Here is what I have done till now - if (lastOTPEntry.Value != string.Empty) { …
0
votes
1 answer

Xamarin - Custom Frame Renderer shadow not changing

I'm trying to customize the ListView elements shadow effect for both iOS and Android, but everything I try takes no effect. Here is my DataTemplate used in the ListView:
Macaret
  • 797
  • 9
  • 33