Hello,
is there any alternate available to apply specific theme directly on win form controls other than making a change in stylesheet (to apply different colors and appearance?) basically, for specific theme user wants to apply different color. one option is to create .tsp file and add it to resource. so is there any other way possible where user don't need to create. tsp or any other file and by using direct property he can achieve the same. (controls like date time picker, calendar, tree view, Rad buttons etc.)
Thank you.
I want to set the selected date of the Calendar, like with the DateTimePicker.
The SelectedDate property, which allegedly has a getter and setter, does not seem to work.
radDateTimePicker1.Value = DateTime.Now.AddDays(-3); // This works great. The picker displays the date from three days ago.
radCalendar1.SelectedDate = DateTime.Now.AddDays(-3); // This shows today's date.
What am I missing?
TIA!
Using RadCalendar and I thought is would be simple
I want all dates in the past to be disabled and I thought this would do it:
private void radCalendar1_ElementRender(object sender, RenderElementEventArgs e)
{
if (e.Day.Date < DateTime.Now)
e.Day.Disabled = true;
}
Th goals is to have it look like this but it seems to have no effect and I can selected dates that the code set as disabled.
What am I missing?
Thanks
Carl
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="AimmsApp.Task.Views.AgendaMenu"
xmlns:resx="using:AimmsApp.Resources"
xmlns:input="clr-namespace:Telerik.XamarinForms.Input;assembly=Telerik.XamarinForms.Input"
xmlns:views="clr-namespace:AimmsApp.Task.Views;assembly=AimmsApp"
Title="{x:Static resx:Resources.Agenda}">
<AbsoluteLayout x:Name="mainLayout">
<input:RadCalendar x:Name="calendar" ViewMode="Agenda" AppointmentsSource="{Binding Appointments}">
<input:RadCalendar.AgendaViewSettings>
<input:AgendaViewSettings MonthItemFormat="YYYY MMM"
WeekItemStartDateFormat="dd MMMM"
WeekItemEndDateFormat="dd"
DayItemFormat="EEE d MMM"
AppointmentItemTimeFormat="HH mm"
AppointmentItemEndDateFormat="MMM d"
AppointmentItemStartDateFormat="MMM d"
IsHeaderSticky="True"
/>
</input:RadCalendar.AgendaViewSettings>
<input:RadCalendar.BindingContext>
<views:CalendarView />
</input:RadCalendar.BindingContext>
</input:RadCalendar>
</AbsoluteLayout>
</ContentPage>
I tried with scheduler but there is no agenda view maybe somehow with dayview and remove the hours?
Is there a way, to get the RadCalendar to view similar to the calendar view in OUTLOOK.
This is what I am looking for:
Is there no API that basically provides?
It looked okay at first because it was implemented like the code below. However, pressing Next Button will not update on days other than that month.
private void radCalendar1_ElementRender(object sender, RenderElementEventArgs e)
{
if (e.Day.Date.Year == DateTime.Now.Year
&& e.Day.Date.Month == DateTime.Now.Month
&& e.Day.Date.DayOfWeek == DayOfWeek.Sunday)
e.Element.ForeColor = Color.Red;
}
First
After, Next Button Click
Changed font and height of navigation bar.
However, you cannot change the size and location of the Previous/next button. What should I do?
hi
How to localization the calendar in the filter radgridview
image atached
thanks
private void radDateTimePicker_RootElement_MouseWheel(object sender, MouseEventArgs e)
{
if(e.Delta>0)
{
radDateTimePicker.Value.AddMonths(1);
}
}
hi
i have tow problem
1-how to change backcolor all friday(days) on calendar(datetimepicker)
my code not work
private void radDateTimePickerStart_ElementRender(object sender, RenderElementEventArgs e) { if (e.Day.Date.DayOfWeek==DayOfWeek.Friday) { e.Element.BackColor = Color.Red; } }
2-in atache image
title calendar not change CultureInfo("fa-IR", true);