Have you checked out the new cool RichTextArea control or TextBlock with trimming ? Read this post.
The RichTextArea allows hyperlinks, XAML content, and embedding of images. It supports changing the font size, foreground color, and making text bold, italicized, and underlined. Paragraph blocks allow different formatting of blocks of text. Mouse events, clipboard, undo, language localization are also supported.
Some limitations
- UI elements and hyperlinks are active only in read-only mode.
- You can cut, copy, or paste only plain text.
- Undo is supported only if the IsReadOnly property is false.
You can now set the direction of content and layout of each control to flow from right side to the left (which is useful for some languages such as Hebrew or Arabic). All UIElement controls inherit the FlowDirection from their parent except Image, MediaElement, MultiScaleImage and Popup. When brushes and effects are applied to elements whose FlowDirection property is set RightToLeft, the result is flipped horizontally.
The TextBlock has a new TextTrimming property. When this property is set to WordEllipsis and the text in the TextBlock exceeds the visible limit, the text appears truncated with a trailing three ellipsis.
Other text improvements
- Arabic and Hebrew Text Support
- IME (Input Method Editors) improvements for TextBox
- UIElement: TextInputStart, TextInputUpdate, TextInput events
Useful links:
- http://microsoftpdc.com/Sessions/P09-11
- http://scorbs.com/2009/11/19/pdc-session-silverlight-4-beta-overview/
- http://microsoftpdc.com/Sessions/KEY02
- http://weblogs.asp.net/scottgu/archive/2009/12/16/silverlight-4-demos-from-my-pdc-keynote-now-available.aspx
- http://silverlight.net/learn/videos/all/richtextarea-part-1/
- http://silverlight.net/learn/videos/all/richtextarea-part-2/
- http://silverlight.net/learn/videos/all/bidi-right-to-left/
- http://channel9.msdn.com//learn/courses/Silverlight4/RichTextEditor/RichTextEditor/
- http://channel9.msdn.com/learn/courses/Silverlight4/Overview/Overview/
- http://blogs.msdn.com/silverlight_sdk/archive/2009/12/03/have-you-checked-out-the-new-richtextarea-control.aspx
- http://msdn.microsoft.com/en-us/library/ee681613(VS.96).aspx
- http://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2009/11/18/silverlight-4-rough-notes-textblock-with-trimming.aspx
No comments:
Post a Comment