MaterialDesignInXAML / MaterialDesignInXamlToolkit

Google's Material Design in XAML & WPF, for C# & VB.Net.
http://materialdesigninxaml.net
MIT License
14.91k stars 3.4k forks source link

calendar does not support RTL langauge #288

Closed nadavten closed 8 years ago

jdf3 commented 8 years ago

Hi nadavten,

Please forgive my ignorance, as I'm learning about the nuances of RTL UI on-the-fly here.

I think all you should need to do is set FlowDirection="RightToLeft" somewhere in the logical tree, since just having the CurrentUICulture be a RTL language doesn't actually orient things for you this way in WPF.

Before: image

After: image

Is this what you were looking for, or is there another problem that is unaddressed here?

ButchersBoy commented 8 years ago

@hshahdoost anything to add on this?

nadavten commented 8 years ago

How did u get the hebrew to show?

On Thu, Mar 17, 2016, 16:47 James Willock notifications@github.com wrote:

@hshahdoost https://github.com/hshahdoost anything to add on this?

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/issues/288#issuecomment-197911112

jdf3 commented 8 years ago

@nadavten Set the FrameworkElement.Language property of your calendar, or apply the xml:lang attribute to the XAML of your control.

nadavten commented 8 years ago

I did set xml:lang="he-IL" and its not doing the job

On Thu, Mar 17, 2016, 18:39 Jeremy notifications@github.com wrote:

@nadavten https://github.com/nadavten Set the FrameworkElement.Language property of your control, or apply the xml:lang attribute to the XAML of your control.

— You are receiving this because you were mentioned.

Reply to this email directly or view it on GitHub https://github.com/ButchersBoy/MaterialDesignInXamlToolkit/issues/288#issuecomment-197965269

jdf3 commented 8 years ago

OK, I see the problem. Doing either of the approaches I suggested won't work for now. If you set the CurrentUICulture to he-IL, things should work - that's how I got the picture before.

nadavten commented 8 years ago

thank you very much !

hshahdoost commented 8 years ago

@ButchersBoy I'm sorry it took so long to answer, I haven't worked on the calendar since persian calendar follows a totally different story. but if it's required I can make the calendar right to left as well.