Windows Phone TextBlock and Button Controls - by Nick Randolph
The combination of Visual Studio and Expression Blend makes designing and developing Windows Phone applications relatively simple. However, it also makes it easy to use the standard controls without understanding their full capabilities. In this post we’re going to look at a few of the Windows Phone controls that ship with the SDK in more detail.
Let’s start with the TextBlock, which is used for displaying text within a Windows Phone application. The following XAML uses a TextBlock to display the text “Sample text”. It also specifies the FontFamily and FontSize of the text, along with making the text bold, italic and underlined. The last attribute, TextWrapping, is used to force the text to wrap when it reaches the edge of the TextBlock control. Each of these properties can be set using the designer experience within Expression Blend, as shown below.
Read More from: Original Source
Post Contributed by: Kunal Chowdhury
Kunal is the Site Admin and Contributor of Silverlight-Zone. He is a Software Engineer, Microsoft Silverlight MVP, Code Project Mentor and a Code Project MVP. He is also an active Author in SilverlightShow.net and a speaker in various community events. He works on Microsoft Platform and very passionate about Silverlight technology. He started his career in 2007 and achieved various awards during his professional life.
He shares his findings in his personal blog: http://www.kunal-chowdhury.com and he also tweets at: @kunal2383.