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

How do you access the top tab/toolbar for iOS on Shell pages?

I have been trying to set the gravity / positioning options for the top tab/toolbar (the layout that appears when you set two ShellContents to a Tab). This has worked on Android, as the Android Shell renderer exposes both…
0
votes
2 answers

creating a custom render on xamarin forms crashes with app is in break mode

I have followed the video on creating a custom render for xamarin forms on: https://www.youtube.com/watch?v=ux09gAB13kQ (thanks to Houssem Dellai)....the code is as follows: In The main project solution add a class public class RoundedEntry :…
John
  • 3,965
  • 21
  • 77
  • 163
0
votes
1 answer

Why won't my Xamarin forms custom editor renderer do anything

I am trying to make a custom renderer for an editor that changes the "return" key to a "done" button and fires the Completed event when you tap it instead of typing a newline. The code in OnElementChanged() is being hit, but it's not doing anything.…
Collin Vesel
  • 61
  • 1
  • 1
  • 9
0
votes
1 answer

Xamarin Forms Shell toolbar Height

I am new to Xamarin and was working on a few scenarios with Xamarin Forms Shell in Navigation bar. My requirement is to set Image to Navigation bar in shell. I am able to update the image in Navigation bar using Shell Custom Renderers for both…
0
votes
0 answers

Failed to classify image - check the inner exception for more details

I'm using Jim Bennett's "OnDeviceImageClassification" plugin, to try to classify an image taken by a Camera Custom Renderer I did. The problem is, that when it gets to classifying the image taken from the stream:var tags = await…
0
votes
0 answers

How best to expose properties of a native Android control in a control derived from a Xamarin forms view

Fair warning: I am new to Android, Xamarin Forms and MVVM (though I am a seasoned desktop Windows application developer). And though I have used SO as a valuable resource for years, this is my first posted question. So I know I have a lot to learn,…
Blaise
  • 21
  • 7
0
votes
1 answer

Xamarin HybridWebView throwing exception at EvaluateJavaScript

I spent some hours yesterday finding out why I couldn't access the (obviously working) params of my Hybrid wkWebView. In the iOS part under the correctly fired DidFinishNavigation override, I always got a NullObjectReference Exception when trying to…
Kerry
  • 101
  • 1
  • 7
0
votes
1 answer

Open new Activity from Xamarin Custom Renderer

This is my first Custom Renderer project and just getting hold of xamarin. I have a Camera Custom Renderer, and want to pass the image preview (through the file path) to another activity for extra functions, in Android. Using the classic: …
0
votes
1 answer

Change loading indicator Offset in Xamarin.Forms RefreshView

On Xamarin.Forms (iOS Android), I need to change the loading-indicator position on the RefreshView. I need to add offset, so the indicator is visible if you have a bar overlapping the ScrollView-RefreshView combo and trigger…
0
votes
1 answer

Xamarin Forms Custom SearchbarRenderer with Loadingcircle like Netflix

I really want to implement a loading circle in the searchbar (overriding the cancel button while loading) on android like Netflix. Currently Im getting the cancel button with var searchBttId =…
0
votes
1 answer

How to properly align slider's thumb on Xamarin.Forms custom slider in android?

I'm trying to create a custom slider in Xamarin.Forms, I have created a custom renderer for this purpose protected override void OnElementChanged(ElementChangedEventArgs e) { base.OnElementChanged(e); if (e.NewElement…
0
votes
1 answer

OnTouchEvent never called in Xamarin Android Custom Renderer

I've created a custom renderer for Android and implemented it for a custom Slider control. I've got 2 solutions. In both solutions an Android App is build and started on an Android Phone. The test program shows the slider fine and I can drag the…
Paul Sinnema
  • 2,534
  • 2
  • 20
  • 33
0
votes
2 answers

Height and Width of parent are not what is expected

I'm trying to create a custom renderer that should produce a vertical Slider. The drag of the thumb of the slider works and the thumb starts to slide perfectly if I run it on a tablet emulator. Sizes are detected perfectly. Than I ran it on a my…
Paul Sinnema
  • 2,534
  • 2
  • 20
  • 33
0
votes
1 answer

Xamarin Forms - Webview page's click and horizontal scroll is not working

I have a webview in Xamarin Forms app for render html content and privacy policy. I'am facing two issues, that are follows. Content page or page popups are not respond to the click action. Images are displayed in the page are in bigger size and…
Mable John
  • 4,518
  • 3
  • 22
  • 35
0
votes
2 answers

Xamarin Forms WKWebView size doesn't shrink

I have a custom WkWebView where I set the height of the view to the size of the html content. This works great when I initialize it, but the problem comes when I change the source of the WkWebView to a shorter html. I've already encountered this…