Agenda
description
Transcript of Agenda
![Page 1: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/1.jpg)
Developing Arabic Applications with Visual Studio 2005
Dina LasheenProgram Manager – Developer Division
![Page 2: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/2.jpg)
Agenda
What is special about Arabic
What’s new in Windows forms What’s new in localizing ASP .NET 2.0 What’s new in the .NET frameworkConclusion & Questions
![Page 3: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/3.jpg)
A complex script is one that A complex script is one that requires special processing, requires special processing, such as:such as:
Arabic is a complex scripts
• Bi-directional (BiDi) reordering (Arabic)• Contextual shaping (Arabic, Indic family)• Display of combining characters (Arabic, Thai,
Indic)
![Page 4: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/4.jpg)
Agenda
What is special about Arabic
What’s new in Windows forms What’s new in localizing ASP .NET 2.0 What’s new in the .NET frameworkConclusion & Questions
![Page 5: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/5.jpg)
What’s new in Windows Forms
• New Controls:– Strip Controls:
• ToolStrip• MenuStrip• ContextMenuStrip• StatusStrip
![Page 6: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/6.jpg)
What’s new in Windows Forms
• New Controls:Layout Controls
• SplitContainer• FlowLayoutPanel• TableLayoutPanel
• More new Controls…
![Page 7: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/7.jpg)
What’s new in existing controls
• Some controls had problems in displaying RightToLeft content.For example: Treeview, Listview,
DateTimePicker, MonthCalendar, Form, ProgressBar, Tabcontrol, TrackBar.
They didn’t layout from the right and didn’t produce the expected rtl behavior.
Solution: New property,RightToLeftLayout
![Page 8: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/8.jpg)
Highlights of RightToLeftLayout
• Set both RightToLeft and RightToLeftLayout• Does not inherit down control hierarchy• Mirrors images – if this is not a desired behavior,
you need to supply a mirrored image set.• Form.BackgroundImage is not supported while
RightToLeftLayout= True.• Should use GDI to render text instead of GDI+:
– TextRenderer.DrawText( …) instead of Graphics.DrawString
![Page 9: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/9.jpg)
Demo (Windows From)
![Page 10: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/10.jpg)
Agenda
What is special about Arabic
What’s new in Windows forms What’s new in localizing ASP .NET 2.0 What’s new in the .NET frameworkConclusion & Questions
![Page 11: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/11.jpg)
ASP .NET 2.0 and right-to-left• Full right-to-left pages
– Set DIR attribute on HTML tag using an explicit resource expression• Direction property on <asp:panel>
– Can be explicitly defined– Can be loaded using a resource expression– Useful for mixed left-to-right/right-to-left pages
<asp:Panel ID="Panel2" Direction="RightToLeft" RunAt="server"> ً مرحبا و </ br>أهال <asp:Login ID="Login1" RunAt="server" /></asp:Panel>
![Page 12: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/12.jpg)
ASP.NET Localization• v. 1.0/1.1
– Uses .NET resource model– No design time assistance
• v. 2.0– Uses .NET resource model– Provides a simple declarative model for
localization– Design time resource generation– Edit using the resource editor– Server side compile of .resx files– Auto-detection of browser culture
![Page 13: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/13.jpg)
Demo (ASP .NET 2.0 localization)
![Page 14: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/14.jpg)
Change the page direction
• Programmatic
• Declarative
<html xmlns="http://www.w3.org/1999/xhtml"runat="server" dir= "<%$ Resources: Global, html_dir %>">
void Page_Load(object sender, EventArgs e){ if (CultureInfo.CurrentUICulture.TextInfo.IsRightToLeft) html.Attributes["dir"] = "rtl";}
![Page 15: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/15.jpg)
Demo (ASP .NET 2.0 localization, cont…)
![Page 16: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/16.jpg)
Agenda
What is special about Arabic
What’s new in Windows forms What’s new in localizing ASP .NET 2.0 What’s new in the .NET runtimeConclusion & Questions
![Page 17: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/17.jpg)
.NET runtime improvements
• Custom Cultures– Replacement Cultures– Supplemental Cultures– Defining and Using Custom Cultures
• Improved Unicode Standard Support– International Domain Names– Normalization– Supplementary and Combining Characters– Unicode Character Data Information
![Page 18: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/18.jpg)
More …
• New Calendars– 6 New Calendar classes
• Shortest day names– ShortestDayNames in DateTimeFormatInfo– Enables display of compact date
strings/calendars
UmmAlQura calendar support
![Page 19: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/19.jpg)
Demo (Calendar)
![Page 20: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/20.jpg)
Agenda
What is special about ArabicWhat’s new in Windows forms What’s new in localizing ASP .NET 2.0 What’s new in the .NET frameworkConclusion & Questions
![Page 21: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/21.jpg)
More information• Arabic & International Support
http://www.microsoft.com/middleeast/MSDN http://www.microsoft.com/globaldev
• Get Involved! Product Feedback Centerhttp://lab.msdn.microsoft.com/productfeedback/
default.aspx• MSDN Forums
http://forums.microsoft.com/msdn/
Email : [email protected]
![Page 22: Agenda](https://reader036.fdocuments.net/reader036/viewer/2022062520/56815d8d550346895dcb9ac9/html5/thumbnails/22.jpg)
Agenda
What is special about ArabicWhat’s new in Windows forms What’s new in localizing ASP .NET 2.0 What’s new in the .NET frameworkConclusion & Questions