Hi,
I am struggling to alter the linespacing on the telerik.windows.documents.fixed.model.Editing.Block. I use the following line of code;
textBlock1.LineSpacing = 10
However this doesn't seem to have any effect. Nothing crashes and there is no problems running the code. If I break at this line the value is never set. I can use the Visual Studio debugger to set the value and it works perfectly. Any ideas?
Secondly when using multiline text from a database the block doesn't seem to respect newlines. I have to use the following code which seems a bit excessive.
Any help would be much appreciated.
Regards,
Shaun
I am struggling to alter the linespacing on the telerik.windows.documents.fixed.model.Editing.Block. I use the following line of code;
textBlock1.LineSpacing = 10
However this doesn't seem to have any effect. Nothing crashes and there is no problems running the code. If I break at this line the value is never set. I can use the Visual Studio debugger to set the value and it works perfectly. Any ideas?
Secondly when using multiline text from a database the block doesn't seem to respect newlines. I have to use the following code which seems a bit excessive.
01.Private Sub InsertText(textBlock As Editing.Block, descriptionText As String)02. Dim ascii() As Byte = System.Text.Encoding.ASCII.GetBytes(descriptionText)03. For i As Integer = 0 To descriptionText.Length - 104. If ascii(i) = 13 Then05. textBlock.InsertLineBreak()06. Else07. textBlock.InsertText(descriptionText(i))08. End If09. Next10. End SubAny help would be much appreciated.
Regards,
Shaun

