I'm converting a VB6 app that uses the Sheridan Calendar Widgets 32bit control to VB.NET (VS2010). My development machine is Win7-64 bit, but the app will also need to run on XP and Win7-32bit. Which product would you suggest I use? I've looked at the WindowsForms Schedule control. It seems like overkill, I really just need to be able to display a month or 12 months at a time and display certain dates in a different color. The MonthCalendar control that ships with VS does not allow any customizations on the style, font, size, colors etc, so I'm looking for a .net friendly replacement.
Thanks.
Hello Serena,
For more styling capabilities, you can use the xamMonthCalendar.
You can style the calendar using Style definitions with "Trigger" and "Setter".
<Style TargetType="{x:Type igEditors:CalendarDay}"> <Style.Triggers> <Trigger Property="IsSelected" Value="True"> <Setter Property="Foreground" Value="Green" /> </Trigger></Style.Triggers></Style>
I have attached a sample for reference. My simple styling was to set the Foreground of the selected days to Green. However, there are more complex styles that you can use too. I included one example of that in the sample application.
Here are some forum posts that might be helpful too.
Customize Style of Dates
Set BackgroundColor to Specific Dates
Styling Some Days in xamMonthCalendar
Please let me know if you have further questions.
Elizabeth AlbertLocalization Engineer
Hi Elizabeth,
Thanks for the recommendation. I've looked at the xamCalendar link. It appears to be very similar to the MonthCalendar control that ships with Visual Studio. I'm looking for something that has more flexibility in setting the backcolor property and other style properties for individual dates within the calendar.
Serena Lucy
Programmer/Analyst
Trapeze Software Group
I'd recommend the WPF xamCalendar. It is a much simpler control than the WinForms Schedule control.
About xamCalendar
Using xamCalendar
There are also some examples in the samples browser to demonstrate the features.