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

Custom image renderer on iOS to get x,y coordinates of the tapped location

I have a xamarin forms image, and when the user taps on the image I want to get the x,y coordinates of where the user tapped. Not the x,y coordinates of the view per se, but the coordinates within the image. I have this working on Android below.…
stepheaw
  • 1,683
  • 3
  • 22
  • 35
0
votes
0 answers

Grid CustomRenderer view

i'm trying to make custom renderer of my grid so how to make gradient from NativeView it not affecting my grid any idea ? class GridRenderer : ViewRenderer { protected override void OnElementPropertyChanged(object sender,…
Abdullah Tahan
  • 1,963
  • 17
  • 28
0
votes
1 answer

How can I interact with a xamarin forms image in Android?

I have an image in Xamarin Forms. I want to use the native android features to interact with this image. For example, when the image is tapped, I want to know the x,y coordinates of where the image was tapped. I can use Android ImageView but I'm not…
stepheaw
  • 1,683
  • 3
  • 22
  • 35
0
votes
0 answers

MasterDetailPage Navigation in Xamarin.Forms

The below code properly work on Android but it' throws null exception on iOS.On ios first select it's not loading the page and when you select another item on list after the first selection it will load that page. My code is given…
0
votes
3 answers

Entry Custom Renderer(add all borders for Android) in Xamarin.Forms

I have a question. I need to add all borders to an entry in Android using Xamarin.Forms. I created the renderer class in the PCL and referenced it in the xaml file. Then I created the specific class for the renderer in the Android Project. I have…
denno
  • 129
  • 1
  • 4
  • 17
0
votes
1 answer

How to get Xamarin forms list view to reset custom view cell after delete on android?

I'm implementing a swipe to delete feature using a custom view cell and renderer. I have a list view like so: https://i.stack.imgur.com/AzBQk.png and when swiped, a button is revealed, as below https://i.stack.imgur.com/S87uj.png However, after…
0
votes
2 answers

Xamarin Forms: Progressbar Height Issue in IOS

I have created an app using Xamarin Forms PCL project which will run on android, ios, windows 10 and windows 8.1. In it I have used a progresbar control and for increasing its height I made its custom renderer. In PCL- using…
Sonali
  • 2,223
  • 6
  • 32
  • 69
0
votes
2 answers

How to access object name in custom classes using Xamarin.forms?

Recently I have started development using Xamarin.Forms. I am creating an application in which I have to customize the button, so I created customButton class. Now, I want to access the button in custom class using object.name property but I am not…
0
votes
1 answer

Xamarin Android Custom MasterDetailPage not calling OnLayout when page pushed to detail page which is NavigaionPage

I took the source I found here: https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.Android/Renderers/MasterDetailRenderer.cs And created a custom renderer in a Xamarin Forms Android project. I got the project to build and…
0
votes
0 answers

Wrapping an MPVolumeView inside 2 Stack Layouts (Xamarin.IOS)

I am creating a control based on a generic View that works with a custom renderer based on an iOS MPVolumeView, which is the simple control that allows you to select an alternate output route for audio in your app (i.e. Bluetooth Speaker). The code…
Chet at C2IT
  • 549
  • 6
  • 21
0
votes
0 answers

Maintain sessions in custom WebView Xamarin

I am using custom renderer for WebView to send headers in request in my PCL project. I am sending session token and i dont need to type password and login name. Thing is when I start to navigate in webview it throws me to the login page and makes me…
0
votes
1 answer

Is it possible to make a PCL library that contains the control that use custom render?

Is it possible to make a library that contains the control that use custom render? For example, I want to create customized DatePicker control (Customized via custom render), that would be reused in many other projects. My goal is to create control…
0
votes
2 answers

How to handle accessory button tap on iOS in Xamarin.Forms?

There's a AccessoryButtonTapped method to override in table view delegate, but it's not clear how to perform that in a ListViewRenderer subclass? So I can display a disclosure indicator, but can't handle tap on it. public class ContactCellRenderer :…
rudyryk
  • 3,695
  • 2
  • 26
  • 33
0
votes
1 answer

Xamarin Forms: Timepicker 24hour and custom interval on Android

I can't seem to get this right. There are some old post on this subject but non of them offer a working solution. This is what I'm trying to get done: -Timepicker in 24hour format instead of am/pm -Custom interval, for example 15 minute or 20 minute…
0
votes
2 answers

How to fix rotation for WebView custom renderer for iOS using Xamarin.Forms?

I have created a custom renderer for a WebView in my Xamarin.Forms project. The WebView works great on Android. Unfortunately, on iOS, when the device is rotated, the webpage (any webpage) does not correctly adjust to the new dimensions of the…