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.1Does Xamarin ImageEditor have swipe gesture ? To change between several images.
Regards
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...
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);
}
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 '****'.