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
0 answers

Dynamically Update a Component based on Another Component's Value Expression in JSF View

I have looked into the possibilities of facelet tag files, custom components, custom renderers, but couldn't figure this out. Highly appreciate if someone can direct me in a possible solution. Here's what I need to do I have a lot of label, input,…
1
vote
0 answers

Custom Renderers in Xamarin.Forms Class Library

How do I create a platform-specific custom renderer within a Xamarin.Forms class library? I'm creating a Xamarin Forms class library that allows me to expand a picker's list with a tap anywhere on the control. That means I need to open the picker's…
FactoryOptimizr
  • 306
  • 3
  • 13
1
vote
2 answers

Xamarin.Forms How can I disable hover highlight effect on listview

I am developing a Xamarin.Forms project that uses a Listview. In this listview, I use a datatemplate to show my own made cards in the listview. The listview with my custom made cards renders correctly, however there is one thing that doesn't go as…
neqopa
  • 119
  • 1
  • 12
1
vote
2 answers

Custom Render not being used on Bindable property update

Please consider the following issue. In my Xamarin.Forms app I have a custom render for UWP that allows for a button to have two lines, and be centralised. The buttons in questions are items in a Listview that are bound to objects. When they are…
Aphire
  • 1,621
  • 25
  • 55
1
vote
1 answer

Xamarin.Forms MasterDetailPage custom render invalid cast exception

I am writing a custom renderer for master detail page. And I get a invalid cast exception in the main activity. public class MainActivity : global::Xamarin.Forms.Platform.Android.FormsApplicationActivity { protected override void…
1
vote
2 answers

XamarinForms CustomRenderer with .net standard 2.0 and prism7

I am trying out Prism7 together with AutoFac in a xamarinforms project. I am trying to create a custom renderer for an entry control, nothing fancy here. But for some reason i cannot get a reference to xamarin.forms and…
1
vote
1 answer

Android Layout page is not inflated for custom page renderer in Xamarin Forms

I am developing a mobile application for both IOS and Android platforms using Xamarin.Forms. First of all, I just started using Xamarins. What I am trying to do now is I am trying to render the different page for iOS and Android. I am using Custom…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
1
vote
0 answers

Timepicker with 30 minutes interval

Currently I'm trying to create a timepicker which would provide the 24 hours of the day in different sets of intervals. I was able to override the default "clock" style of the xamarin forms timepicker…
RMSPereira
  • 155
  • 1
  • 13
1
vote
2 answers

Using a custom renderer in PCL library

I want to use my custom renderer inside a PCL. Is it possible? Or can I initialize my custom renderer inside this PCL?
1
vote
1 answer

Draw pixel by pixel on Custom Renderer (Xamarin.Forms)

I have a frame with some items inside. The corner is very useful, but is there a way to draw pixel by pixel, or shapes using Custom Renderers? I'm trying to draw a message balloon.
LuizLoyola
  • 386
  • 3
  • 20
1
vote
1 answer

Select a disabled tab firing TabSelected event indefinitely on Custom TabbedPage renderer

Hello I'm trying to disable certain tabs based on a property in a custom Xamarin.Forms content page. I added a handler to the TabLayout's TabSelected event to keep on the current selected tab if the other tab can not be selected. However, the event…
Scarnet
  • 738
  • 2
  • 11
  • 36
1
vote
2 answers

Customize Picker background color and Title Color in xamarin forms ios

I am looking for "Highlight the Picker with Background color whenever it is clicked" and also "Title Color" And when i click other picker the previous picker has to be change to default color, and current clicked picker has to be change color. I…
1
vote
2 answers

Xamarin forms gradient frame renderer for iOS

i am creating a custom renderer for Xamarin.Forms Frame control to enable extended functionality like gradient background. for now i got it to work somehow on iOS but i am working on the android version too. First i tried to override the SetupLayer…
Iemanuel
  • 51
  • 1
  • 8
1
vote
2 answers

Background color of selected TabBarItem in Xamarin on iOS

Using Xamarin.Forms, I have a custom TabbedPageRenderer in iOS. Now, I can change the text color on a selected TabBarItem, but I can't change the background color of the selected tab. Does anyone know how? class CustomTabbedPageRenderer :…
Mystogan
  • 547
  • 4
  • 21
1
vote
1 answer

How to implement a UWP Custom Renderer in Xamarin-Forms using FFImageLoading

I cant find a good example about use of FFImageLoading in a UWP custom renderer for xamarin forms, good example sites use to focus in android and ios only. My main issue is how to use this Image Class in the UWP resource, CachedImage should be used…