Implementing Mirroring

The process of switching a user interface between a left-to-right language, such as German or English, and a right-to-left language, such as Hebrew or Arabic, is called mirroring .

The .NET Framework offers support for mirroring in Web forms through the HTML dir attribute, as shown in the following code sample:

 <HTML dir="rtl"> 

Setting the HTML dir attribute (which can also be set on individual controls) handles most of the facets of the mirroring process automatically. Controls fill from right to left as you enter text, and the DropDownList , RadioButton , and CheckBox controls reverse their appearances .

graphics/tip_icon.gif

If you want to mirror part of a form, you can set the dir property to rtl on individual controls instead of on the entire form.




MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)
MCAD Developing and Implementing Web Applications with Visual C#. NET and Visual Studio. NET (Exam [... ]am 2)
ISBN: 789729016
EAN: N/A
Year: 2005
Pages: 191

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net