Xamarin.Forms.RangeSlider not visible in iOS Devices

Anonymous
2020-12-04T07:16:25.917+00:00

Hi

https://www.nuget.org/packages/Xamarin.Forms.RangeSlider/

hi i am using above nuget pacakge range slider but it's not visible on iOS devices but it's working on Android Devices

below is the code which i used.

NameSpace-xmlns:rangeSlider="clr-namespace:Xamarin.RangeSlider.Forms;assembly=Xamarin.RangeSlider.Forms"

<rangeSlider:RangeSlider x:Name="RangeSlider" MinimumValue="1" MaximumValue="100" LowerValue="1" UpperValue="100" StepValue="0"
StepValueContinuously="False" VerticalOptions="Center" TextSize="15" />

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,297 questions
0 comments No comments
{count} votes

Accepted answer
  1. JarvanZhang 23,951 Reputation points
    2020-12-04T09:11:51.387+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    For this function, try the following steps (which I've tested on my side and it works fine):

    1.Download the solution project from the project site of the plugin.
    2.Copy the png files from the 'Xamarin.RangeSlider.iOS' part to Resources folder of your iOS project.

    3.Add the assembly tag and the two initialization command in the AppDelegate class.

       [assembly: Xamarin.Forms.ExportRenderer(typeof(Xamarin.RangeSlider.Forms.RangeSlider), typeof(Xamarin.RangeSlider.Forms.RangeSliderRenderer))]  
       namespace TestApplication_1.iOS  
       {  
           [Register("AppDelegate")]  
           public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate  
           {  
               public override bool FinishedLaunching(UIApplication app, NSDictionary options)  
               {  
                   global::Xamarin.Forms.Forms.Init();  
                   LoadApplication(new App());  
    
                   var t1 = typeof(Xamarin.RangeSlider.RangeSliderControl);  
                   var t2 = typeof(RangeSliderRenderer);  
    
                   return base.FinishedLaunching(app, options);  
               }  
           }  
       }  
    

    4.Clean and rebuild your project.

    Best Regards,

    Jarvan Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful