I am making a chat window, i just want that message and date time should be on same lign, and same base, there should be no new line in message and date time paragraph block.

String loginsays = "\n" + nick+ " says: ";
Run run = new Run(loginsays);
run.Foreground = new SolidColorBrush(Colors.DodgerBlue);
myParagraph.Inlines.Add(new TextBlock(run));
fldoc.Blocks.Add(myParagraph);
Run run2 = new Run(msg);
run2.Foreground = new SolidColorBrush(Colors.Black);
myParagraph.Inlines.Remove(run);
myParagraph.Inlines.Add(new TextBlock(run2));
fldoc.Blocks.Add(myParagraph);
//(DateTime.Now.ToString("hh:mm:tt")
System.Windows.Documents.Paragraph datetime =
new System.Windows.Documents.Paragraph();
Run rundate = new Run(dt);
rundate.Foreground = new SolidColorBrush(Colors.DarkGray);
datetime.Inlines.Add(new TextBlock(rundate));
datetime.TextAlignment = TextAlignment.Right;
datetime.FontSize = 10;
fldoc.Blocks.Add(datetime);
I have made two blocks, one is for chat and other is for date, one is left align, otherone is right align.
You could (ab)use a
Tablefor that i suppose.