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

Xamarin Forms custom stepper

I am trying to make a custom stepper to use in my listview such as this one Any idea how to do this? Thanks.
mohammad anouti
  • 171
  • 2
  • 18
1
vote
1 answer

Remove border when hover a button Xamarin form UWP

How to remove the rectangle border showing when hovering the button in Xamarin form UWP. I have referred the following link Remove border of button when hover that we have to change border width property, that too failed because I am using a rounded…
1
vote
2 answers

Custom Renderer for Picker in Xamarin.Forms

I want to customize my picker. I created a custom renderer for my picker but I dont know how the customization settings. How can I change the font style and size of the item? and How can I remove the two lines? public class CustomPickerRenderer :…
loot verge
  • 449
  • 1
  • 12
  • 31
1
vote
2 answers

How to pass values from custom PageRenderer to Shared Xaml Page code behind in Xamarin

I have a Xamarin page in which I had to use Android native page renderer in order to support platform specific API. BasePage.xaml passes control to MyPage.xaml with Navigation.PushAsync() XAML page : MyPage.xaml
Morse
  • 8,258
  • 7
  • 39
  • 64
1
vote
2 answers

Auto focus entry when it is visible or enabled in xamarin forms using custom renderers

I have a page where i display a list of items in a listview which has a footer. The footer of the listview is visible only in certain conditions. Here is the listview footer which has an entry.
1
vote
1 answer

Xamarin custom renderer rounded corners results in 2 borders

I created rounded corners on iOS using a custom renderer: protected override void OnElementChanged(ElementChangedEventArgs e) { base.OnElementChanged(e); if (Control != null) { …
Vincent
  • 2,073
  • 1
  • 17
  • 24
1
vote
1 answer

How to build Custom Xamarin Forms Entry with Icon, placeholder label and border with curved corners?

I'm new to Xamarin and would like to know where to start with this. I have a need to make a Xamarin Forms custom Entry. That Entry needs an Icon and a border with rounded corners and a place holder label. This is a mock up of what is needed:" The…
Rodney Hickman
  • 3,133
  • 11
  • 53
  • 83
1
vote
1 answer

Could not implement NavigationPageRenderer Custom renderer xamarin form

I have google a lot about building CustomRenderer to display custom navigationpage on xamarin form (to display gradient on navigationbar) but did not succeed. here is my code: using System; using System.Collections.Generic; using System.Text; using…
RizkiDPrast
  • 1,695
  • 1
  • 14
  • 21
1
vote
4 answers

Xamarin Forms content page make background color transparent

I have a requirement where in I need to display a list in a modal popup page.I am able to display a list but I cant make the background color transparent or semi transparent so that the page under it is partially visible. I am pushing the page from…
Debasish
  • 417
  • 1
  • 10
  • 21
1
vote
1 answer

Xamarin get the native control in custom renderer

I have two custom views (HybridEntry and HybridSlider) with custom renderers for each platform. In the custom renderers, HybridSlider has to use some of the platform-specific functionalities of HybridEntry. In short, I want to access the native…
Shiblu
  • 457
  • 3
  • 12
1
vote
1 answer

The type or namespace name 'Graphics' does not exist in the namespace 'Project.Android'

I am working on a Xamarin.Forms application, In which I have added a custom renderer to set the background of native edit text. Following Code shows error. var shape = new ShapeDrawable(new Android.Graphics.Drawables.Shapes.RectShape());
Suyash
  • 365
  • 5
  • 18
1
vote
1 answer

Underline and Strikethrough using AddAttribute not updating properly

I am making a custom renderer on iOS to get Underline and StrikeThrough for UILabel. Using var stringAttributes = new NSMutableAttributedString(Control.Text,new UIStringAttributes{ UnderlineStyle = NSUnderlineStyle.Thick, UnderlineColor =…
Hicham Bagui
  • 240
  • 1
  • 17
1
vote
0 answers

Xamarin Forms Custom Renderer iOS UICollectionView scrolling in both directions / horizontal – vertical scrolling

Xamarin Forms Custom Renderer iOS UICollectionView scrolling in both directions / horizontal – vertical scrolling Intention: Implementation of an interactive Grid which scroll horizontally and vertically . Problem: The grid scrolls in both…
1
vote
1 answer

Reduce the width of Master of the MasterDetailPage for UWP in Xamarin.forms

I have created a Xamarin Application and in that I am required to reduce the width of the Master of the Master-Detail Page. I have followed an approach to create a UWP specific Custom Renderer. Below is my code : [assembly:…
Shubham Awasthi
  • 159
  • 1
  • 13
1
vote
1 answer

How do I get text to wrap and add another line below in a Xamarin Forms iOS custom renderer?

I am creating a custom renderer to display a title and description in a translucent white space on an image. The title should wrap to the second line if wider than the image, and an optional description may appear below if there is room. In…
Christine
  • 562
  • 3
  • 19