今天看了下Justin的blog,推荐下他这个东东--用于提供阿拉伯文字的LTR和RTL支持的silverlight组件。
    首先看一个比较图:

Rendering Comparison

Normal Silverlight 1.1

RTL (Right-to-Left): Not Supported
Align-to-right: Not Supported
silverlight1.1中对Hebrew和Arabic 的语言支持
Silverlight 1.1 Hebrew &
Arabic Language support

RTL: Supported
Align-to-right: Supported
silverlight1.1中对Hebrew和Arabic 的语言支持

HTML

RTL: Supported
Align-to-right: Supported

שלום עולם!
مرحبا عالم!
hello world!
Blend

RTL: Edit Mode only
Align-to-right: Edit mode only
silverlight1.1中对Hebrew和Arabic 的语言支持

先看下silverlight显示如下文字
עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012.
hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456. hello world 789.012. مرحبا عالم 123.456. hello world 789.012. שלום עולם 123.456.

使用这个组件后显示情况
     silverlight1.1中对Hebrew和Arabic 的语言支持
默认状态下显示情况
    silverlight1.1中对Hebrew和Arabic 的语言支持 


使用方法

    1. 打开Expression Blend Sep preview,新建一个Expression Blend Orcas项目。
 silverlight1.1中对Hebrew和Arabic 的语言支持
    2.引用SilverlightRTL.dll
    3.打开blend控件库Asset library
silverlight1.1中对Hebrew和Arabic 的语言支持
    4.打开Customer tools找到RTLExtender
    5.放到面板上,现在就可以开始使用RTLExtender控件了
silverlight1.1中对Hebrew和Arabic 的语言支持

    5.拖动到design视图中,F5 运行项目
silverlight1.1中对Hebrew和Arabic 的语言支持
silverlight1.1中对Hebrew和Arabic 的语言支持

如果你对这个控件有兴趣,可以去看下具体详细的使用方法。
作者的文章link
http://blogs.microsoft.co.il/blogs/justinangel/archive/2007/10/26/silverlight-1-1-hebrew-and-arabic-language-support-silverlightrtl.aspx

相关文章:

  • 2022-12-23
  • 2021-10-15
  • 2022-12-23
  • 2022-01-23
  • 2021-06-01
  • 2021-12-07
  • 2022-12-23
  • 2021-10-01
猜你喜欢
  • 2022-12-23
  • 2021-07-14
  • 2022-12-23
  • 2021-06-18
  • 2021-08-17
相关资源
相似解决方案