Hi.I want to listen for the back button event on the navigation bar and Change background color. What should I do
Hello,
I have a problem regarding the Calendar DayView on UWP. The problem does not occur for my app on iOS or Android. When opening my page including the DayView the appointments are loaded correctly but the app is completly frozen and no further action can be taken. I tried multiple ways of loading the appointments and i will be posting my current setup below. For appointment loading i have tried the solution in the bug report https://feedback.telerik.com/xamarin/1497171-calendar-nullreferenceexception-when-setting-the-appointmentssource-in-uwp, which sadly does not fix the freezing problem.
Below is my code for the page:
View:
<pages:vContentPage
x:Class="v.App.Views.AboutPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:pages="clr-namespace:v.App.Styling.Pages;assembly=v.App"
xmlns:prism="http://prismlibrary.com"
xmlns:telerikInput="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
Title="About"
prism:ViewModelLocator.AutowireViewModel="True"
BackgroundColor="{DynamicResource ColorBackgroundPrimary}">
<telerikInput:RadCalendar x:Name="calendar"
ViewMode="Day"
NativeControlLoaded="MyCalendar_OnNativeControlLoaded">
<telerikInput:RadCalendar.DayViewSettings>
<telerikInput:DayViewSettings
DayStartTime="9:00:00"
DayEndTime="18:00:00"
TimelineInterval="2:00"
IsCurrentTimeIndicatorVisible="True"/>
</telerikInput:RadCalendar.DayViewSettings>
</telerikInput:RadCalendar>
</pages:vContentPage>
View.xaml.cs:
using System;
using System.Collections.ObjectModel;
using System.Drawing;
using Telerik.XamarinForms.Input;
namespace v.App.Views
{
public partial class AboutPage
{
public AboutPage()
{
InitializeComponent();
}
private void MyCalendar_OnNativeControlLoaded(object sender, EventArgs e)
{
var today = DateTime.Today;
var items = new ObservableCollection<Appointment>
{
new Appointment {
Title = "Meeting with Tom",
Detail = "Sea Garden",
StartDate = today.AddHours(10),
EndDate = today.AddHours(11),
Color = Color.Tomato
},
new Appointment {
Title = "Lunch with Sara",
Detail = "Restaurant",
StartDate = today.AddHours(12).AddMinutes(30),
EndDate = today.AddHours(14),
Color = Color.DarkTurquoise
},
new Appointment {
Title = "Elle Birthday",
StartDate = today,
EndDate = today.AddHours(11),
Color = Color.Orange,
IsAllDay = true
},
new Appointment {
Title = "Football Game",
StartDate = today.AddDays(2).AddHours(15),
EndDate = today.AddDays(2).AddHours(17),
Color = Color.Green
}
};
(sender as RadCalendar).AppointmentsSource = items;
}
}
}
I have attached a screenshot from the loaded page aswell.
I am using the Telerik.UI.for.Xamarin Nuget-Package Version 2022.1.11.
Thank you in advance.
When I use telerikinput: radentry, using the cursorposition attribute has no effect, but it takes effect when the cursorposition attribute is used in xamarin's native entry
<telerikInput:RadEntry x:Name="AAAAA"/>
<Entry x:Name="BBBB" />
AAAAA.CursorPosition = 0;
BBBB.CursorPosition = 0;
Hey guys,
I am currently implementing a grouping in my Listview. The data is getting grouped by a Datetimevalue.
I can sort the Listview by using this Datetime but then I get the long Datetimevalue inside the header I tryed using stringformat and a valueconverter but without any effect.
Is there a way to modify the output in the groupingheader?
Best regards
Julian
Good day. How to Scan my generated QR code?
<telerikBarcode:RadBarcode x:Name="barcode"
Value="https://docs.telerik.com/devtools/xamarin/introduction">
<telerikBarcode:RadBarcode.Symbology>
<telerikBarcode:QRCode SizingMode="Stretch"
CodeMode="Byte"
ErrorCorrectionLevel="H"
ECIMode ="ISO8859_1"
FNC1Mode="SecondPosition"
ApplicationIndicator="00"/>
</telerikBarcode:RadBarcode.Symbology>
</telerikBarcode:RadBarcode>
Dear brothers and sisters:
Please help me
There are two stacklayouts in my page. I use radsegmentedcontrol to control their isvisible attribute when switching. When switching, I add a piece of data to the radlistview in stacklayout. When I switch for the first time, I can add data and display it, but when switching for the second time, the data is added into itemssource, and the front page does not display new data
Here is my code,Attached is my video