能够在XAML中做一些事情,例如:在CSS中 image取形象。 我需要做这样的事情:
具有可变的形象层面和文字长度。
http://www.ohchr.org。 在我的案件中,围绕图像的文字压力不是静止的,而是在C#法典中写成一个文本Block要素清单(有Runs)。
能够在XAML中做一些事情,例如:在CSS中 image取形象。 我需要做这样的事情:
具有可变的形象层面和文字长度。
http://www.ohchr.org。 在我的案件中,围绕图像的文字压力不是静止的,而是在C#法典中写成一个文本Block要素清单(有Runs)。
解决办法似乎是利用本介绍中描述的RichTextBlockOverflow and OverflowContentTarget:。
页: 1 4 您将使用<代码>RichTextBox实现这一目标:
<RichTextBox TextWrapping="Wrap" IsReadOnly="False">
<Paragraph>
More text here ..
<InlineUIContainer>
<Image Source="abc.jpg"/>
</InlineUIContainer>
more and more text here;
<LineBreak />
</Paragraph>
</RichTextBox>
参看Win8 测距,有RichTextBox,还有
This question seems to be asking for something similar to what you want. The answer here should prove a solution to what you desire.
答复摘要采用
<FlowDocument>
<Paragraph>
<Floater HorizontalAlignment="Left">
<BlockUIContainer>
<Image Source="/FlowDocumentTest;component/dog.png" Width="100" />
</BlockUIContainer>
</Floater>
Here is where the text goes to wrap around the image.
</Paragraph>
</FlowDocument>
<>Update>
As your question states, you are now using some C# code to generate TextBlock/Run Elements, both can be children of a Paragraph object. So simply name your Paragraph
like so:
<FlowDocument>
<Paragraph x:Name="textPara">
<Floater HorizontalAlignment="Left">
<BlockUIContainer>
<Image Source="/FlowDocumentTest;component/dog.png" Width="100" />
</BlockUIContainer>
</Floater>
</Paragraph>
</FlowDocument>
之后在C#中,在文本Para(即)上添加以下生成的<代码>TextBlock或Run
s至。
var runToInsert = new Run("Some text to display");
textPara.Inlines.InsertAfter(textPara.Inlines.FirstInline, runToInsert);
What is the use of default keyword in C#? Is it introduced in C# 3.0 ?
I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...
I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...
I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...
I have two EF entities. One has a property called HouseNumber. The other has two properties, one called StartHouseNumber and one called EndHouseNumber. I want to create a many to many association ...
How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...
Since I cannot order my dictionary, what is the best way of going about taking key value pairs and also maintaing an index?
Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...