BulletedList 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:

    This Silverlight 3 demo uses:<LineBreak/>
    <Run>• Entity Framework and LINQ</Run><LineBreak/>
    <Run>• .NET RIA Services</Run><LineBreak/>
    <Run>• WCF</Run><LineBreak/>
    <Run>• Export DataGrid to Excel</Run><LineBreak/>
    <Run>• Insert/Update/Delete with DataForm</Run><LineBreak/>
    <Run>• Styling and ResourceDictionary</Run><LineBreak/>
    <Run>• Control Template</Run><LineBreak/>
    <Run>• Out Of Browser mode (OOB)</Run><LineBreak/>
    <Run>• Search Engine Optimization (SEO)</Run>

As expected, the result at runtime:


Technorati Tags:

1 Comment

Comments have been disabled for this content.