Click here to Skip to main content
15,902,112 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: FolderBrowserDialog in WPF Pin
Abhinav S22-May-10 5:28
Abhinav S22-May-10 5:28 
GeneralRe: FolderBrowserDialog in WPF Pin
dan!sh 22-May-10 5:34
professional dan!sh 22-May-10 5:34 
AnswerRe: FolderBrowserDialog in WPF Pin
Daniel Grunwald22-May-10 6:44
Daniel Grunwald22-May-10 6:44 
GeneralRe: FolderBrowserDialog in WPF Pin
dan!sh 22-May-10 7:14
professional dan!sh 22-May-10 7:14 
QuestionHow to you generate itemized lists in a RichTextBox? [NO SOLUTION POSSIBLE] Pin
fjparisIII22-May-10 4:12
fjparisIII22-May-10 4:12 
AnswerRe: How to you generate itemized lists in a RichTextBox? Pin
Kunal Chowdhury «IN»24-May-10 8:37
professionalKunal Chowdhury «IN»24-May-10 8:37 
GeneralRe: How to you generate itemized lists in a RichTextBox? Pin
fjparisIII24-May-10 9:17
fjparisIII24-May-10 9:17 
QuestionHow do you adjust leading between paragraphs in RichTextBox? [SOLVED THROUGH A KLUDGE] Pin
fjparisIII22-May-10 4:10
fjparisIII22-May-10 4:10 
The RichTextBox in Silverlight 4 supports the Paragraph element. But if you just put two paragraphs in a row together, there is no leading between the paragraphs. Also, unlike WPF, the Paragraph element does not define a Margin property. If the first paragraph just happens to fill the last line (or nearly so), it looks as if there is only one paragraph and there is no visual clue that you actually have two paragraphs.

So how do you control the leading between paragraphs? You get far too much leading if you end each paragraph with a LineBreak element, so that's not a solution, and it's a kludge to begin with.

Solution: The only way to solve this is through a kludge. I bounced this solution off a Silverlight MVP and he thought this kludge was "clever." To provide leading between each paragraph in the BlockCollection of a RichTextBox, you can include markup like the following:
<Paragraph FontSize="4"></Paragraph>

when for example the font size of your paragraphs is 14. If you use the default font size for your paragraphs (11), a font size of 3 might work in the kludge.

modified on Monday, May 24, 2010 3:36 PM

AnswerRe: How do you adjust leading between paragraphs in RichTextBox? [SOLVED THROUGH A KLUDGE] Pin
Abhinav S24-May-10 17:28
Abhinav S24-May-10 17:28 
QuestionValidation Messages [modified] Pin
Tripathi Swati21-May-10 23:02
Tripathi Swati21-May-10 23:02 
AnswerRe: Validation Messages Pin
Abhinav S22-May-10 0:30
Abhinav S22-May-10 0:30 
GeneralRe: Validation Messages Pin
Tripathi Swati24-May-10 19:27
Tripathi Swati24-May-10 19:27 
AnswerRe: Border as control Pin
Jürgen Röhr22-May-10 2:23
professionalJürgen Röhr22-May-10 2:23 
GeneralRe: Border as control Pin
Jürgen Röhr22-May-10 21:40
professionalJürgen Röhr22-May-10 21:40 
AnswerRe: Border as control Pin
Abhinav S22-May-10 2:30
Abhinav S22-May-10 2:30 
QuestionHow do you color a rectangle in C# that has been declared in XAML in WPF? Pin
Xarzu21-May-10 16:11
Xarzu21-May-10 16:11 
AnswerRe: How do you color a rectangle in C# that has been declared in XAML in WPF? Pin
Pete O'Hanlon21-May-10 23:44
mvePete O'Hanlon21-May-10 23:44 
GeneralRe: How do you color a rectangle in C# that has been declared in XAML in WPF? Pin
Xarzu22-May-10 1:58
Xarzu22-May-10 1:58 
GeneralRe: How do you color a rectangle in C# that has been declared in XAML in WPF? Pin
Pete O'Hanlon22-May-10 2:28
mvePete O'Hanlon22-May-10 2:28 
GeneralRe: How do you color a rectangle in C# that has been declared in XAML in WPF? Pin
Xarzu24-May-10 5:09
Xarzu24-May-10 5:09 
QuestionHow do you send a refresh message to a WPF grid or canvas? Pin
Xarzu21-May-10 16:10
Xarzu21-May-10 16:10 
AnswerRe: How do you send a refresh message to a WPF grid or canvas? Pin
Jürgen Röhr22-May-10 3:11
professionalJürgen Röhr22-May-10 3:11 
QuestionWPF TreeView - Get Reference To Image On Node Pin
Kevin Marois21-May-10 7:56
professionalKevin Marois21-May-10 7:56 
AnswerRe: WPF TreeView - Get Reference To Image On Node Pin
Pete O'Hanlon21-May-10 9:20
mvePete O'Hanlon21-May-10 9:20 
GeneralRe: WPF TreeView - Get Reference To Image On Node Pin
Kevin Marois21-May-10 10:20
professionalKevin Marois21-May-10 10:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.