Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How image included within the text in RichBox in WPF ?

$
0
0
When inside the tool I want to text included in the image between the place where I want to speak, as the following picture:


I tried the following code but the photo does not show the speech, but end of the sentence appears:

Dim para As New Paragraph()
Dim bitmap As New BitmapImage(New Uri("D:\Happy.png"))   
Dim image As New Image()   
image.Source = bitmap   
image.Width = 20   
para.Inlines.Add(image)   
RTB.Document.Blocks.Add(para)

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>