locked
Can anyone help me in How to render custom picker in UWP? RRS feed

  • Question

  • User395117 posted

    I'm stuck with the issue of custom picker rendering in UWP. I need to change the corner radius of my picker.

    Thursday, June 11, 2020 6:03 AM

All replies

  • User382871 posted

    I'm stuck with the issue of custom picker rendering in UWP. I need to change the corner radius of my picker. To add corner radius for the Picker, you could use a Frame to wrap the Picker and add the corner radius for the frame to achieve the feature.

    Check the code: ``` HasShadow="True" IsClippedToBounds="True" Padding="0">

    <Picker ...>...</Picker>
    

    ```

    Thursday, June 11, 2020 7:34 AM
  • User395117 posted

    Hi Jarvan

    I want to create the Custom renderer picker for UWP

    Thursday, June 11, 2020 10:21 AM
  • User382871 posted

    To create a custom renderer for picker in uwp, you could refer to the following links:

    https://github.com/xamarin/Xamarin.Forms/blob/master/Xamarin.Forms.Platform.UAP/PickerRenderer.cs https://stackoverflow.com/questions/53237436/how-to-set-corner-radius-for-button-in-xamarin-uwp-by-programatically

    You can also try the SfComboBox plugin which support many styles for the 'picker'.

    Friday, June 12, 2020 9:33 AM