silverlight1.1中对Hebrew和Arabic 的语言支持

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

Rendering Comparison

Normal Silverlight 1.1

RTL (Right-to-Left): Not Supported
Align-to-right: Not Supported
image
Silverlight 1.1 Hebrew &
Arabic Language support

RTL: Supported
Align-to-right: Supported
image

HTML

RTL: Supported
Align-to-right: Supported

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

RTL: Edit Mode only
Align-to-right: Edit mode only
image

先看下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.

使用这个组件后显示情况
     image
默认状态下显示情况
    image 


使用方法

    1. 打开Expression Blend Sep preview,新建一个Expression Blend Orcas项目。
 image
    2.引用SilverlightRTL.dll
    3.打开blend控件库Asset library
clip_image004
    4.打开Customer tools找到RTLExtender
    5.放到面板上,现在就可以开始使用RTLExtender控件了
clip_image008

    5.拖动到design视图中,F5 运行项目
clip_image009
clip_image010

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

posted @ 2008-02-22 11:28  一瞬间  阅读(358)  评论(0编辑  收藏  举报