How to change Color from Slider on Xamarin Mac Platform?

MProtocolMProtocol Member ✭✭
edited July 2018 in Xamarin.Forms

The default color from a Slider on Xamarin Mac project is blue, I want to change it to green, So I have made a Custom Renderer, but unfortunately, I don't what to do inside the custom renderer, How can I change the color?

    using CustomSliderColor.MacOS;
    using Xamarin.Forms;
    using Xamarin.Forms.Platform.MacOS;

    [assembly: ExportRenderer(typeof(CustomSlider), typeof(CustomSliderRenderer))]
    namespace CustomSliderColor.MacOS
    {
        public class CustomSliderRenderer : SliderRenderer
        {
            protected override void OnElementChanged(ElementChangedEventArgs<Slider> e)
            {
                base.OnElementChanged(e);

                if (Control != null)
                {
                    //What do I put here?????
                }
            }
        }
    }
Sign In or Register to comment.