CurrentMonthBackgroundColor="#ffffff"
CurrentMonthTextColor="#000000"
PreviousMonthBackgroundColor="#f2f2f2"
PreviousMonthTextColor="#000000"
DateSelectionColor="Aqua"
SelectedDayTextColor="#000000"
BorderColor="Aqua"
DayHeaderBackgroundColor="#000000"
DayHeaderTextColor="Aqua"
CellGridOptions="Both"
TodayTextColor="Aqua"
DayLabelTextAlignment="Center"
DateTextAlignment="Center" >
DateFormat="dd"
DayFormat="EEE"
DayLabelSize="22"
DateLabelSize="14" />
---------------------------------------------------------------------------------------------------------------------------------------
C#
public MainPage()
{
InitializeComponent();
SfCalendar calendar = new SfCalendar();
MonthLabelSettings labelSettings = new MonthLabelSettings();
labelSettings.DateFormat = "dd";
labelSettings.DayLabelSize = 20;
labelSettings.DayFormat = "EEE";
labelSettings.DateLabelSize = 12;
MonthViewSettings monthViewSettings = new MonthViewSettings();
monthViewSettings.CurrentMonthBackgroundColor = Color.FromHex("#ffffff");
monthViewSettings.CurrentMonthTextColor = Color.FromHex("#000000");
monthViewSettings.PreviousMonthBackgroundColor = Color.FromHex("#f2f2f2");
monthViewSettings.PreviousMonthTextColor = Color.FromHex("#000000");
monthViewSettings.DateSelectionColor = Color.Aqua;
monthViewSettings.SelectedDayTextColor = Color.FromHex("#000000");
monthViewSettings.BorderColor = Color.Aqua;
monthViewSettings.DayHeaderBackgroundColor = Color.FromHex("#000000");
monthViewSettings.DayHeaderTextColor = Color.Aqua;
monthViewSettings.CellGridOptions = CellGridOptions.Both;
monthViewSettings.DayLabelTextAlignment = DayLabelTextAlignment.Center;
monthViewSettings.DateTextAlignment = DateTextAlignment.Center;
monthViewSettings.TodayTextColor = Color.Aqua;
monthViewSettings.MonthLabelSettings = labelSettings;
calendar.MonthViewSettings = monthViewSettings;
this.Content = calendar;
}
--------------------------------------------------------------------------------------------------------------------------------------
When I attempt to throw in a Button control or Label control it either doesn't show up or it says "The Property 'Content' is set more than once."
I am new to this. Any advice? Also where would I put the controls in XAML and C#? Thanks in advance. Appreciate any help I can get.