I have a WPF application .net Framework
platform and in the Xaml Side
, I have changed the Culture as follows: When I use DatePicker
, when I click on the date selection button
, it shows me the Persian calendar correctly. However, when I select a date, it displays the Gregorian date in Persian numbers. When I click on the year at the top of the page to select the date, it shows me the Gregorian months in Persian. Then, when I click again, it shows me the Gregorian years. What should I do to solve this problem?
How it Looks Like The Date Picker
when I Select a date in Date Piker it Also Translate to Gregorian Calendar. and its Look Like This:
enter image description here
The Xaml code that I wrote for this date Picker is as follows:
<DatePicker
Width="140" FlowDirection="RightToLeft"
BorderThickness="2" Margin="8" Language="fa-IR"
materialDesign:HintAssist.Hint="تاریخ پایان"
Style="{StaticResource MaterialDesignOutlinedDatePicker}" />
What I want is to be able to convert the months and years in Datepicker to the Jalali calendar, and after selecting, the Jalali date will be displayed in the text box.
Can this confusion in the Jalali and Gregorian calendars be resolved?
I would be grateful if you could help me in this regard.
What I want is to be able to convert the months and years in Datepicker to the Jalali calendar, and after selecting, the Jalali date will be displayed in the text box.