Support Persian Calendar

Nov 25, 2010 at 10:39 AM

Hi!

Thank you for great TimeLine control.

How can i change code to display Persian Calendar years and months? For example, I want client see Persian year 1389, instead of Gregorian year 2010!

Thanks in advance! :)

Nov 29, 2010 at 6:35 PM

As far as I know Persian calendar is not supported in SL.

Nov 29, 2010 at 7:11 PM

I mean for WPF timeline control! Not SilverLight!

System.Globalization.PersianCalendar class to support Persian Calendar. :)

Nov 30, 2010 at 4:48 PM

OK. I've added it:

CalendarType="persian"

CultureID="fa-IR"

 

Let me know if it works.

 


Nov 30, 2010 at 9:12 PM

Thank You!

But i was added this before in TimeLineCalendar.cs, CalendarFromString(string) function.

I want to change items text! For example, Instead of displaying (Gregorian DateTime)12/01/2010, Display (Persian DateTime)10/09/1389!

But after i change calendar, displayed date and time stay Gregorian and just InitialDateTime ,MaxDateTime and MinDateTime converting from Persian to Gregorian!!!

Where is each item's template???