HI有没有办法让FlowDirection适合当前的文化.
我设置了一个属性
public string FlowDirection
{
get {
return // should return the flow direction using Thread.CurrentThread.CurrentUICulture.
}
}
Run Code Online (Sandbox Code Playgroud)
我不想硬编码像
if (currentLanguage.ToLower().StartsWith("ar"))
{
return FlowDirection.RightToLeft;
}
else
{
return FlowDirection.LeftToRight;
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1677 次 |
| 最近记录: |