inlineuicontainer

Silverlight. How to align text in InlineUIContainer content with outer text in RichTextBox

扶醉桌前 提交于 2020-01-02 06:57:10
问题 The task: Make the text content of the InlineUIContainer to be inline with the outer text. The standard behaviour of the InlineUIContainer content is when the bottom edge is inline with the outer text. It is possible to shift the position of InlineUIContainer with RenderTransform, but the value of Y has to be chosen for each font type and size - not a perfect way. <RichTextBox> <Paragraph> LLL <InlineUIContainer> <Border Background="LightGoldenrodYellow"> <TextBlock Text="LLL"/> </Border> <

WPF. How to align text in InlineUIContainer content with outer text in RichTextBox

心已入冬 提交于 2019-12-23 10:04:08
问题 The task: Make the text content of the InlineUIContainer to be inline with the outer text The standard behaviour of the InlineUIContainer content is when the bottom edge is inline with the outer text. It is possible to shift the content of InlineUIContainer with RenderTransform, but the value of Y has to be chosen for each font type and size - not a perfect way. <RichTextBox> <FlowDocument> <Paragraph> LLL <InlineUIContainer> <Border Background="LightGoldenrodYellow"> <TextBlock Text="LLL"/>

How can I copy WPF FlowDocument InlineUIContainer contents?

无人久伴 提交于 2019-12-07 02:15:04
问题 I have a WPF FlowDocument that has a few InlineUIContainers, these are simple InlineUIContainers, that contain a styled button with some text in the Button.Content. When I copy the text and InlineUIContainer containing the button from the FlowDocument to a TextBox, the button is not copied. It is possible to somehow convert the inline button or convert the button to text in the pasted text data. I have tried using the FlowDocument.DataObject.Copying event, but I can't seem to find any good

Silverlight. How to align text in InlineUIContainer content with outer text in RichTextBox

南楼画角 提交于 2019-12-05 19:23:32
The task: Make the text content of the InlineUIContainer to be inline with the outer text. The standard behaviour of the InlineUIContainer content is when the bottom edge is inline with the outer text. It is possible to shift the position of InlineUIContainer with RenderTransform, but the value of Y has to be chosen for each font type and size - not a perfect way. <RichTextBox> <Paragraph> LLL <InlineUIContainer> <Border Background="LightGoldenrodYellow"> <TextBlock Text="LLL"/> </Border> </InlineUIContainer> LLL </Paragraph> <Paragraph> LLL <InlineUIContainer> <Border Background=