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 to access the UIImagePickerController Shutter UiButton from Xamarin.ios

i would like to access to the Shutter UiButton from a xamarin.iOS App so i can do some changes on it, but i'm not able to find it. so i tried to recreate the UIImagePickerController project in xcode, and i i found it using this code and i'm able…
Wael
  • 13
  • 1
  • 7
0
votes
1 answer

Xamarin forms - Customize ContentPage's toolbar item

I need to add a label inside a toolbar item in a ContentPage. I would like to create a CustomRenderer for iOS, Android and UWP, but I can't get the toolbar view for each platform. For example, for Android I have tried to get the ActionBar and then…
Hikari
  • 589
  • 7
  • 29
0
votes
2 answers

Lable in toolbar xamarin forms

I am a new xamarin forms trainee I want to add title, logo and back button to my page and make the back button on the right of the page, and make the title on the left of back button, where the logo on the left of the page. I tried to use…
LofiMAM
  • 127
  • 1
  • 11
0
votes
2 answers

Custom Label Renderer in Xamarin Forms: OnDraw never fired

I'm trying to customize how some Labels get rendered in a Xamarin Forms project. More specifically, I'm trying to do custom drawing on the control. For this purpose I created a custom renderer where I overrode OnDraw method. I can use my label in…
Disti
  • 1,228
  • 1
  • 13
  • 27
0
votes
1 answer

Is there any way to add background Image on navigationbar page by page on xamarin forms

Is there any way to add background Image on navigationbar page by page on xamarin forms?
0
votes
1 answer

Is DependencyService replacement for Custom renderer

I am little confused about DependencyService compared to CustomRenderer. Can we use DependencyService in place of CustomRenderer. Where can we use DependencyService?
R15
  • 13,982
  • 14
  • 97
  • 173
0
votes
1 answer

How to Navigate between Android Specific Pages and Shared Pages in Xamarin.Forms?

I am trying to implement a camera overlay for my android app in Xamarin Forms. I am able to get my overlay to work for Android when I set my activity MainLauncher to True. How can I instead navigate to the activity page from my Xamarin.Forms shared…
0
votes
1 answer

Unexpected behavior of the Xamarin Picker when using custom renderer?

I need to customize the Text color of the picker (the Title color), which is not possible in the Xamarin.Forms implementation, so I created a simple renderer which did what I needed: using Android.Content; using MyProj.Droid.Renderers; using…
mshwf
  • 7,009
  • 12
  • 59
  • 133
0
votes
2 answers

Xamarin Forms Gradient Button for Android

I have implemented a custom renderer for my Xamarin.Forms Android app to have gradient background buttons. The gradient is working but it is being drawn over my button and its text, and I can't figure out how to draw it behind the button. Custom…
zack
  • 85
  • 9
0
votes
0 answers

how to extend all contentpages using pagerenderer in UWP?

I would like to extend all the contentpages in my xamarin.forms app with a native view in UWP. I can basically go to each and every page and embed a native view but i dont want this. I want to know if there is a way to do it using a pagerenderer. I…
Emil
  • 6,411
  • 7
  • 62
  • 112
0
votes
1 answer

Connecting Xamarin Form tabbed pages to XAML

I am fairly new to all of this and am currently attempting to get the height of the tabs in the Xamarin tabbed page form. The only solution I found to this is to write a custom renderer, and that is what I'm having a hard time with. After a couple…
Matt
  • 17
  • 4
0
votes
2 answers

Xamarin forms custom stepper value in listview

I have a list with a custom stepper in it, and I have a detail page for every item in this list, I need to change the value of the custom stepper when I change it in the detail page and also when I refresh the list. This is the list of items and the…
mohammad anouti
  • 171
  • 2
  • 18
0
votes
1 answer

what approach to use a specific component that is only available for iOS or WPF or android in Xamarin Forms?

what approach is used to create a specific component that is only available for one platform? Can I use Custom Renderer or DependencyService or any other approaches is there ?
Yogi
  • 3
  • 3
0
votes
1 answer

Xamarin forms: Entire row highlighting when tapped FlowListView item?

I have added FlowListView in my project. As mention in the FAQ I am facing the entire row highlighting issue when tapped one item in windows, no such issue in android. I have added the custom renderers like below: In Main Project: using…
Sreejith Sree
  • 3,055
  • 4
  • 36
  • 105
0
votes
1 answer

Xamarin custom renderer System.ArgumentException when runs

I've created a rendered picker's to center center in the middle of the control but at the moment of entering the page, it shows the following error: System.ArgumentException. I attach the code to see if you can help me. In project new class... using…
Jordi Prat
  • 121
  • 1
  • 9