Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 10 results for TextBlock.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • 0 comments  /  posted by  Silverlight Show  on  May 17, 2010 (1 month ago)
    This post of Antoni Dol is dedicated to QuoteFloat - an animation for TextBlock elements, inspired by the way the HTC Touch HD shows SMS Text messages.

    It moves the text up and rotates it at the same time resulting in a spiraling effect. It is done by giving the TextBlock elements a PlaneProjection each and animating the RotationY and GlobalOffsetY properties.

    The TextBlock elements are positioned below the bottom of the Canvas. The Canvas has a Clipping Mask so no one will see them until the animation starts.



  • A syntax highlighting TextBlock for Silverlight 3

    0 comments  /  posted by  Silverlight Show  on  Mar 09, 2010 (3 months ago)
    Jeff Wilcox has adapted a syntax highlighting engine to generate a syntax highlighting TextBlock control for Silverlight. 

    Add the control assembly to your Silverlight project. Then, add an XMLNS prefix to your Silverlight page where you’d like to use the control.

    There are two properties of interest that should be set or bound: SourceCode (the actual source text), and SourceLanguage

  • 0 comments  /  posted by  Paul Yanez  on  Dec 28, 2009 (6 months ago)
    Tags: embedding fonts , file size , font family , textblock
    In this tutorial Paul Yanez explains how to embed a font in Silverlight and shows the increase in file size that will occur when doing so.

    Embedding a font is as simple as selecting the “Embed” checkbox in the text properties panel.
    One thing to note when embedding the font “Myriad Pro” the xap file size becomes 831 kb.


  • Inline Hyperlinks in Silverlight 3

    0 comments  /  posted by  Silverlight Show  on  Nov 16, 2009 (7 months ago)
    Tags: Hyperlinks , TextBlock , Silverlight 3

    In this article, Jeremy Likness sets out on a quest to be able to take a simple set of text, formatted for a text block, and generate inline links.

    The first step is to simply open your solution, start a new Silverlight 3 application, and get rolling with some text. The easiest way to grab text is to visit Lorem Ipsum, where you can request however much text you need and it will generate the paragraphs for you. I just grabbed a few sentences and set the width of my control to 200 so I could show the text wrapping. 

  • BulletedList in Silverlight

    0 comments  /  posted by  Silverlight Show  on  Oct 29, 2009 (8 months ago)
    Tags: BulletedList , TextBlock

    In this short post Laurent Duveau demonstrates how to create a bulleted list in Silverlight.

    Today I wanted to add a bulleted list of text items in a xaml page, as there is no BulletedList control in Silverlight, you have to do it yourself. But I don’t need a databound list, just something simple in a TextBlock, so here is what I ended with, using <LineBreak> and <Run> elements.

  • Label Control with TextTrimming

    0 comments  /  posted by  Silverlight Show  on  Aug 13, 2009 (10 months ago)
    Tags: Label , Controls , TextBlock , Behaviors
    Just a while ago, Beat Kiener implemented a label control with a text trim behavior.

    Here are some main decisions for the label control:

    • It derived from Control, because one should not be able to add a child control to it (just like the normal TextBlock control)
    • The template is hardcoded, because nobody should be able to change it.
    • The text trimming functionality is implemented in the MeasureOverride method, because it’s the only place I get the available space from the parent element (including infinity) [...]
  • 0 comments  /  posted by  Silverlight Show  on  Aug 04, 2009 (10 months ago)
    Tags: TextBlock , Effects
    Robby Ingebretsen found out that the ability to tell TextBlock to truncate its text to ellipses if it runs out of room is missing in Silverlight and wanted to do something about it.

    There’s plenty of room for improvement here. Specifically, I’m just shortening the text one character at a time. I’m pretty confident that could be improved. Also, I only have the equivalent of TextTrimming=”CharacterEllipses” and not TextTrimming=”WordEllipses” but that one should be pretty easy to add too.

  • What’s New In Silverlight 3 - Multi-Select List Box

    0 comments  /  posted by  Silverlight Show  on  Jul 23, 2009 (11 months ago)

    In this next post on the new features of Silverlight 3 Jesse Liberty talks about the Multi-Select List Box and shows a working example of it.

    In Silverlight 3 the standard ListBox now has a SelectionMode property which is filled from an enumerated constant whose possible values are

        •    Single
        •    Multiple
        •    Extended

    Creating and using a multi-select list box requires only setting the property and retrieving the values. In the following example we create a multi-select list box, a button to indicate that our selection is complete, and a TextBlock to display the retrieved values.

  • Silverlight TextBlock with Tracking

    0 comments  /  posted by  Silverlight Show  on  Mar 02, 2009 (more than a year ago)
    Tags: Tracking , TextBlock , Silverlight , C# , Dante Gagne

    Dante Gagne has a post about Silverlight TextBlock with tracking.

    We’ve been talking a lot to designers about what they want, and one thing I keep hearing is a desire for Tracking and Kerning. Currently, Silverlight doesn’t really support those, and there really isn’t an easy way to do it.

  • 6 comments  /  posted by  Denislav Savkov  on  Sep 03, 2008 (more than a year ago)

    Yes, that is right, there is no Label control in Silverlight. Instead you should use the new control System.Windows.Controls.TextBlock. Keep in mind that it can display only text, no images or other type of content, just text.

    Xaml

    <TextBlock x:Name="statusText" Text="Active" TextWrapping="Wrap" TextAlignment="Left" VerticalAlignment="Center"/>

    C#

    TextBlock statusText = new TextBlock();
    statusText.Text = "Active";
    statusText.TextWrapping = TextWrapping.Wrap;
    statusText.TextAlignment = TextAlignment.Left;
    statusText.VerticalAlignment = VerticalAlignment.Center;

    That's it!

     


Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)