HI Is there any way to get the FlowDirection for current culture.
I have set a property like
public string FlowDirection
{
get {
return // should return the flow direction using Thread.CurrentThread.CurrentUICulture.
}
}
I dont want to hardcode something like
if (currentLanguage.ToLower().StartsWith("ar"))
{
return FlowDirection.RightToLeft;
}
else
{
return FlowDirection.LeftToRight;
}
use this: CultureInfo.TextInfo.IsRightToLeft
taken from related question
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With