Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Cell size on year view (Read 3487 times)
zodraz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 29
Joined: Jan 14th, 2011
Cell size on year view
Jan 14th, 2011 at 11:35pm
Print Post  
Hi all,

    I am trying to increase the cell size on year view, just to be able to display some data like "600-CD", but it the cells on this size are not resizing. My code looks like:

calendar.CurrentView = view;
calendar.MonthRangeSettings.NumberOfMonths = 12;
calendar.MonthRangeSettings.MonthsPerRow = 6;
calendar.ItemSettings.Height=20;

What I am doing wrong?

Many thanks for help,

Zodraz
         I
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Cell size on year view
Reply #1 - Jan 17th, 2011 at 7:18am
Print Post  
To reduce the size of the items, use ItemSettings.Size property. The Height property is derived from FrameworkElement and has no effect. To increase the space available for the items, adjust the headers of the cells through the MonthSettings.DaySettings.HeaderSize property.

Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
zodraz
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 29
Joined: Jan 14th, 2011
Re: Cell size on year view
Reply #2 - Jan 17th, 2011 at 10:42pm
Print Post  
Hi,
I am not seeing any appointments I would like to see...I am working on the demo supplied...

Maybe I am doing it on the wrong place...I am putting the code on PageContents.xaml

[/i]
/// <summary>
/// Performs an animated switch of the current calendar view.
/// </summary>
private void AnimateViewChange(CalendarView view)

.....

bool backwards = false;



storyboard.Completed += (sender2, e2) =>



{




if (backwards)





return;

calendar.CurrentView = view;
calendar.MonthRangeSettings.NumberOfMonths = 12;
calendar.MonthRangeSettings.MonthsPerRow = 3;
calendar.ItemSettings.Size = 60;
calendar.MonthSettings.DaySettings.HeaderSize = 10;

Appointment app = new Appointment();
app.HeaderText = "500-600";
app.DescriptionText = "500-600";
app.StartTime = new DateTime(2011, 1, 25);
app.EndTime = new DateTime(2011, 1, 25);

calendar.Schedule.Items.Add(app);

[/i]

So many thanks for help,

Zodraz

  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Cell size on year view
Reply #3 - Jan 18th, 2011 at 7:12am
Print Post  
You have to ensure that items are small enough that they can fit in the available space. Try reducing the size of the items as specified by calendar.ItemSettings.Size until you see the items in the view.

Let me know if this helps.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint