Telerik Forums
UI for Xamarin Forum
0 answers
68 views

Hi,

I have a Xamarin Forms application using RadListView. As part of the ItemTemplate I have a Switch as described below:

<Switch
                HorizontalOptions="Start"
                IsEnabled="True"
                IsToggled="{Binding Toggle}"
                IsVisible="{Binding IsConfirmCheckVisible}"
                OnColor="Green"
                ThumbColor="Green">
                <Switch.Triggers>
                    <DataTrigger
                        Binding="{Binding Source={x:Reference chkConfirmCheck}, Path=IsToggled}"
                        TargetType="Switch"
                        Value="False">
                        <Setter Property="ThumbColor" Value="Red" />
                        <Setter Property="OnColor" Value="Red" />
                        <Setter Property="IsEnabled" Value="False" />
                    </DataTrigger>
                </Switch.Triggers>
                <Switch.Behaviors>
                    <behaviors:EventToCommandBehavior
                        Command="{Binding Source={x:Reference ParentBindingContext}, Path=BindingContext.UpdateTrickCommand}"
                        CommandParameter="{Binding .}"
                        EventName="Toggled" />
                </Switch.Behaviors>
            </Switch>

If I have a list of items in the RadListView and I start to scroll, then the Toggled event is fired on the Switch. All items for the RadListView is an ObservableCollection and it is loaded when the screen is opened. Is there an issue with the code above that would cause the Toggled event to be fired upon scrolling in a RadListView? This issue only appears on iOS and on a Phone. The iPad and Android devices behave as it's supposed to i.e. Just scrolls as normal and does not fire the Toggle event.

 Telerik UI For Xamarin Version: 2022.1.117.1
Nivesh
Top achievements
Rank 1
 updated question on 20 Sep 2022
2 answers
66 views

Does Xamarin ImageEditor have swipe gesture ? To change between several images. 

 

Regards

mr
Top achievements
Rank 1
Iron
 answered on 06 Sep 2022
1 answer
104 views
Hello, for the timeSpan Picker spinner I am using this "dd\\:hh\\:mm" format, after selecting I wanna show a different display format, how can I use DisplayStringFormat to show just Hours and Minutes, the form should be like this "hh: mm"?
Didi
Telerik team
 answered on 29 Aug 2022
0 answers
68 views
Excuse me, telerik has controls that can be implemented. Does lable's text scroll in the same direction all the time!
zhe
Top achievements
Rank 1
Iron
Iron
 asked on 15 Aug 2022
1 answer
133 views
please, how I can fix this issue? On the attached files you can see the Xamarin versions (with red has marked works version for the Xamarin.).
Didi
Telerik team
 answered on 04 Aug 2022
1 answer
56 views

Hi, I am using remote search and I need to show all elements after the Focused when the Text is empty (after focused I can get ItemsSource but the Suggestions PopUp is empty) !!! How can I do that?

Thank you...

Didi
Telerik team
 answered on 03 Aug 2022
1 answer
123 views
I have  a RadListView inside RadTabView, from RadListView it navigates to a content page, when returning to the  RadTabView the memory increases. can you please tell me why the memory increases when returning to the RadListView inside the RadTabView
Yana
Telerik team
 answered on 27 Jul 2022
1 answer
77 views
Hello, please can you help me understand why RadDateTimePicker popUp does not work for IOS. On Android working perfectly.
Didi
Telerik team
 answered on 22 Jul 2022
1 answer
72 views

Hi all,

The use case that I am triying to replicate is that we have some events and these can be daily/weekly/monthly/yearly recurring. So I decided to use the calendar & Scheduling component as it provided the recurrence option. When I tested the daily and weekly recurrended options it worked perfectly but to my surprise when trying to get the events recurring every month or year the trouble started.

Even tought I am using the   RecurrenceFrequency.Monthly as my frecuency rule, as we can see from the image it still seem to put it as a daily recurrence. Same happens when the  RecurrenceFrequency.Yearly option is used. Here the code used:

 foreach (Evento evento in this.ListaEventosAgenda)
            {

                EventData eventoNuevo = new EventData() {StartDate=evento.fechaInciio,EndDate=evento.fechaFin,Title=evento.titulo,LeadBorderColor = Color.FromHex(evento.colorCategoria),ItemBackgroundColor=Color.White,
                Id=evento.id,idOrg=evento.idOrg,idCategoria=evento.idCategoria,imageUrl=evento.fotoUrl,Detail=evento.descripcion,IsAllDay=evento.isAllDay,recurrenciaAnual= evento.recurrenciaAnual,recurrenciaMensual=evento.recurrenciaMensual,
                recurrenciaSemanal=evento.recurrenciaSemanal,recurrenciaDiaria=evento.recurrenciaDiaria, categoria=evento.categoria,Color = Color.FromHex(evento.colorCategoria)
                };
            //StartDate: evento.fechaInciio,endTime: evento.fechaFin,eventText: evento.titulo,leadColor: Color.FromHex("59B6B8"),itemColor: Color.White,
            //detalles: evento.descripcion, id: evento.id,imageUrl: evento.fotoUrl, IsAllDay: evento.isAllDay

             RecurrenceRule recurrenceRule = null;
                if (evento.recurrenciaDiaria)
                {
                    //var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Daily, 1, null, null);// { MaxOccurrences = 37 };
                    //recurrenceRule = new RecurrenceRule(recurrencePattern);


                    recurrenceRule = new RecurrenceRule(new RecurrencePattern()
                    {
                        Frequency = RecurrenceFrequency.Daily,
                    });

                    eventoNuevo.RecurrenceRule = recurrenceRule;
                }

                  else if (evento.recurrenciaSemanal)
                {

                    //var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Weekly, 7, null, null);// { MaxOccurrences = 37 };
                    recurrenceRule = new RecurrenceRule(new RecurrencePattern()
                    {
                        Frequency = RecurrenceFrequency.Weekly,

                    });
                    try
                    {

                    eventoNuevo.RecurrenceRule = recurrenceRule;
                    }
                    catch (Exception error)
                    {

                        Debug.WriteLine(error.Message); ;
                    }
                }

               else if (evento.recurrenciaMensual)
                {
                    var a = eventoNuevo.StartDate.DayOfWeek;
                    //var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Monthly, 30, null, null);// { MaxOccurrences = 37 };
                    recurrenceRule = new RecurrenceRule(new RecurrencePattern()
                    {
                        Frequency = RecurrenceFrequency.Monthly,
                    });
                    eventoNuevo.RecurrenceRule = recurrenceRule;
                }

                 else if (evento.recurrenciaAnual)
                {
                    //var recurrencePattern = new RecurrencePattern(new int[] { }, RecurrenceDays.WeekDays, RecurrenceFrequency.Daily, 365, null, null);// { MaxOccurrences = 37 };
                    recurrenceRule = new RecurrenceRule(new RecurrencePattern()
                    {
                        Frequency = RecurrenceFrequency.Yearly,

                    });
                    eventoNuevo.RecurrenceRule = recurrenceRule;
                }

                this.Events.Add(eventoNuevo);
            }

Yana
Telerik team
 answered on 20 Jul 2022
1 answer
115 views

Hi,

I am trying to add the Xamarin libraries to a project I am working on. I have the Nuget source configured properly: When I search for Telerik libraries they all appear correctly, however they fail to install.

Restoring packages for /******.csproj...
Restoring packages for .NETStandard,Version=v2.1...
  GET https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin.datacontrols.lite/index.json
  NotFound https://api.nuget.org/v3-flatcontainer/telerik.ui.for.xamarin.datacontrols.lite/index.json 306ms
Resolving conflicts for .NETStandard,Version=v2.1...
Unable to find package Telerik.UI.for.Xamarin.DataControls.Lite. No packages exist with this id in source(s): nuget.org
Package restore failed. Rolling back package changes for '****'.
Is this a VS 2022 issue or am I missing something?
Didi
Telerik team
 answered on 18 Jul 2022
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?