Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Question about DualView sample (Read 5212 times)
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Question about DualView sample
Jan 25th, 2010 at 12:27pm
Print Post  
I don't see the items I create at the right side appearing at the left side.
Are there missing some synchronization events or is there some other problem I'm not aware of?
  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Question about DualView sample
Reply #1 - Jan 25th, 2010 at 1:41pm
Print Post  
The items do not appear to the left because of the current visualization settings. Either change the current theme to Vista or Standard (where the SingleMonth and MonthRange views display items by default) or set the Calendar.MonthSettings.DaySettings.HeaderSize property to a value different than 0 (which spans the header across the entire cell, leaving no room for items). For example:

Code
Select All
_calendar.MonthSettings.DaySettings.HeaderSize = 10; 


Regards,
Meppy
  
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: Question about DualView sample
Reply #2 - Jan 28th, 2010 at 3:05pm
Print Post  
Can you give me a hint which property I have to set so that a Calendar control which is centered (VerticalAlignment=Center) (or is put inside a ScrollViewer) still shows items in Month(Range)View?

It currently uses minimal size, skipping the visibility of all items.
  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Question about DualView sample
Reply #3 - Jan 28th, 2010 at 3:39pm
Print Post  
The items display if there is enough space for them in the cells. In certain themes the cell headers are set up to cover the entire cell leaving no space for the items. You can reduce the size of the cell headers through the MonthSettings.DaySettings.HeaderSize property (in SingleMonth and MonthRange). Setting this property to 0 however causes the headers to cover the entire cell, leaving no room for items. To hide the headers completely you have to set MonthSettings.DaySettings.HeaderPosition to None.

Does this help?

Regards,
Meppy
  
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: Question about DualView sample
Reply #4 - Jan 28th, 2010 at 4:34pm
Print Post  
Hmm.. MonthRangeSettings does not have a DaySettings property at all.

But to focus on the auto-size problem: Take the CustomItemTemplates sample which unmodified just shows all the items in month and monthrange view, too.

If you now add 'VerticalAlignment="Center"' to the <planner:Calendar /> tag then MonthView, MonthRangeView and WekRangeView will shrink to a minimum size which does not include any items while the other views automatically size with items included.
  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Question about DualView sample
Reply #5 - Jan 29th, 2010 at 7:33am
Print Post  
This is some weird behavior indeed. We will look into it. As for the MonthRange view - it uses the MonthSettings.DaySettings object.

Regards,
Meppy
  
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: Question about DualView sample
Reply #6 - Jan 29th, 2010 at 9:04am
Print Post  
Meppy wrote on Jan 29th, 2010 at 7:33am:
As for the MonthRange view - it uses the MonthSettings.DaySettings object.


Great to know.. This solves (and raises) some other problems/questions.
  

/\/\arkus.
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint