Skip to main content
Microsoft Silverlight
Home Forums Silverlight Design Designing with Silverlight bulleted list?
9 replies. Latest Post by Pluginbaby on October 27, 2009.
(0)
ej.styrfart
Member
2 points
2 Posts
09-27-2007 6:18 AM |
Hi,
How do I create a bulleted list inside a textblock?
//conny
swirling...
Participant
1358 points
385 Posts
09-27-2007 12:24 PM |
Good question. You can type a bullet with the alt+0149 key combination. You can use runs and linebreaks to make it appear as a list.
09-28-2007 1:20 AM |
Ok, thanks.
I find it strange because when working with a Silverlight Application in Expression Blend there is a 'List' tab in the text properties, but this tab is not enabled. Neither is the 'Paragraph' or 'Line indent' tabs.
kp2712
8 points
7 Posts
10-10-2007 8:16 AM |
hi,
i have to do the same thing...can you please share the code for adding the bullets using the ALT+0149 & run..
WynApse
Star
9976 points
342 Posts
10-10-2007 1:30 PM |
Here's the 'run' example from msdn done with a 'bullet' in front:
<TextBlock FontFamily="Arial" Width="400" Text="Sample text formatting runs"> <LineBreak/> <Run Foreground="Maroon" FontFamily="Courier New" FontSize="24">• Courier New 24</Run> <LineBreak/> <Run Foreground="Teal" FontFamily="Times New Roman" FontSize="18" FontStyle="Italic">• Times New Roman Italic 18</Run> <LineBreak/> <Run Foreground="SteelBlue" FontFamily="Verdana" FontSize="14" FontWeight="Bold">• Verdana Bold 14</Run></TextBlock>
-Dave
rob_aber...
20 points
04-10-2008 11:01 AM |
Is this still the preferred method for creating a bulleted list? When the text wraps, how do you indent the next line so it aligns with the first line's text and not the bullet?
Asheesh ...
1 Posts
08-13-2009 10:09 PM |
Surprisingly, there is no bullet list even in SL3. Here's a quick and easy way to render an array as an unordered list in silverlight:
http://asheeshsoni.blogspot.com/2009/08/bulleted-list-in-silverlight.html
sl.ayer
1230 points
209 Posts
08-14-2009 1:46 AM |
StackPanel or Grid would be much better suited for building bullet list then using textblock. Make Grid with as many rows as you need and two columns. In the first column place your bullet symbol or image or roman numeral. In the second column place textblock with text. This way you will have full control of presentation (margins, borders, alignments...). If you use bullet list a lot make your own BulletList item control and share it with us. We all win.
18
10-12-2009 6:44 AM |
I am new to silverlight. I want to use silverlight for LMS system.
I want know that, is this possible in silverlight or not?
Thanks & Regards
satish dugasani
Pluginbaby
652 points
243 Posts
10-27-2009 1:31 PM |
For your LMS question you should ask in a new thread, or have a look at this one:
http://forums.silverlight.net/forums/t/31307.aspx
Regards.