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

Xamarin Forms : disposed object problem with an Android renderer

Using an Android renderer for a Frame inside a page in Xamarin Forms, I need to change the position of this object after the size allocation of the page. The page being in a tab in a Shell, when I change tabs and I come back I get the exception…
charlescol
  • 25
  • 5
0
votes
1 answer

custom LabelRenderer shows wrong text style inside list view on scroll on Xamarin iOS

I am working on an App that requires one list view having text labels with NSUnderlineStyle on user deletion. As per the requirement user have Delete/restore option in detail screen. On delete confirmation the text label should be underline style…
0
votes
1 answer

Disable the Shadow Animation in Shell TabBar

If I switch between my different tabs, I allways get this little click animation that looks like a shadow or sth. I use a custom Renderer for my Shell, but how can I disable this animation? Here is a picture of the click animation
Km0209
  • 1
  • 1
0
votes
1 answer

In a Xamarin Forms Custom Label Renderer, increase the size of the bounds

I have a custom renderer that is attempting to create a white square with rounded corners containing a single font image at the top and text under it. I have been able to do something similar with the ImageRenderer, but am looking to support font…
Christine
  • 562
  • 3
  • 19
0
votes
1 answer

How to display months and days in Vietnamese in DatePickerDialog?

How to display months and days in Vietnamese in DatePickerDialog for Android and DatePicker in IOS when the app language to Vietnamese in Xamarin forms Android: protected override DatePickerDialog CreateDatePickerDialog(int year, int month, int…
0
votes
3 answers

How would I set the background colour of a Xamarin Forms Android Picker popup

I am trying to set the background colour for the popup that appears when you click a picker in xamarin forms. However, the background colour that changes is for the object that you click to display the popup rather than the popup itself as shown…
Mythos
  • 23
  • 4
0
votes
1 answer

Xamarin Forms - custom map marker not visible

I am following article on MS page about Custom map renderer and I can not get it to work for android. Map shows but pins (Markers) are not there. I did not found what I did different from official documents (as in previous link). When I debug, there…
0
votes
1 answer

Xamarin.Forms: how to only allow numbers and dots

I need to only allow numbers and dots to be entered from the keyboard. I created a custom renderer for Android that inherits from EntryRenderer and overriddes the OnElementChanged method as below: protected override void…
Innova
  • 334
  • 4
  • 18
0
votes
1 answer

Acces x:Name from CustomMap on ViewModel MVVM Xamarin

I made a CustomMap that is working if I put my code in xaml.cs but I am working whit MVVM pattern. I need to acces x:Name on my ViewModel…
dan_udnas
  • 19
  • 7
0
votes
1 answer

How can I apply a style or change colors in map using Xamarin.Forms.Maps (No Xamarin.Forms.GoogleMaps)

As I wrote in the title, I use the Microsoft Xamarin.Forms.Maps nugget to show map in my app. First I started with Xamarin.Forms.GoogleMaps, but when I saw that I can't customise InfoWindows (when I touch one pin), I must go back and start using…
0
votes
1 answer

Create a custom navigationbar renderer to add a custom back button icon in xamarin forms IOS project

I was successfully able to create a custom renderer in my Xamarin.Forms Android project to add a custom back button icon instead of the native back button. The renderer i used is as follows: public class MyNavigationPageRenderer:…
Hari
  • 15
  • 2
0
votes
1 answer

Custom NavigationRenderer for back button not called while navigating back in xamarin forms application

Here is the code for the custom renderer i used to assign a custom icon as my back button. namespace MyProjectName.Droid.Renderers { public class MyNavigationRenderer: PageRenderer { protected override void…
Hari
  • 15
  • 2
0
votes
2 answers

How to change Shell Tabbar height

My Problem: I use Shell with bottom Tabbar and I simply want to change it height on Android and maybe on iOS. My Search Results: I know that the Tabbar is an Android/iOS build in feature with solid specified height. There seems to be a way to…
user13665526
0
votes
0 answers

Why does my custom pin shows label only for the last pin in Xamarin Forms Maps?

I implemented the custom map and custom pin as the example from docs.microsoft, but when I tap on a pin if its not the last one created pin then it cannot find the pin: The error appears here in the Android Renderer var customPin =…
0
votes
1 answer

How change icon for MasterDetail on Android?

I have Xamarin Forms. I need change standard icon for MasterDetailPage. Property Icon do not working on Android. I tried add custom renderer, but it don't work. [assembly: ExportRenderer(typeof(MainPage),…
FetFrumos
  • 5,388
  • 8
  • 60
  • 98