I would like to generate a small Preview Image of the fist page of a FlowDocument (imagine a Thumbnail View of a collection of FlowDocuments). Can anyone recommend a good approach for doing this?
...
I am having some trouble with flow document. Would like to create multiple paragraphs with a figure at the start surrounded by text. But I don't want any indentation. The funny thing is that the figure is not indented if I have enough text.
Heres some code to put right into kaxaml which illustrates the problem.
<Page xmlns="http://sche...
Hi
Since I am pretty new to WPF FlowDocuments I would like to ask if the code below is correct. It is supposed to return all Images contained in a FlowDocument as List:
List<Image> FindAllImagesInParagraph(Paragraph paragraph)
{
List<Image> result = null;
foreach (var inline in paragraph.Inlines)
{
var inlineUICont...
Hi, I have a FlowDocument (inside a RichTextBox) that contains UIElement controls such as CheckBoxes. I need the user to be able to click on the CheckBox to select it to change the controls properties such as label, background color etc.
The problem I have is that when I click it it only checks, or unchecks the CheckBox as you would exp...
Hi Everyone,
We're currently using WPF to create a multi-page invoice document, to then be printed / exported via XPS.
The route we've taken to achieve this is to create a UserControl containing a standard ListBox etc displaying the Invoice lines, this is then included in a FlowDocument inside BlockUIContainer tags.
When this FlowDocu...
Hi everybody
I want to realize context help for application View based on flow documents. For example, user presses Ctrl+F1 and context help about current View appears over this View. The help content must must be localized.
In window markup can looks like this:
<Window x:Class="UdkppReports.Window2"
xmlns="http://schemas.microsof...
I've got a WPF FlowDocument with a list of MarkerType 'Upper Latin'. It's looking like this:
Notice that the list item alignment is on the periods after the marker, but since the text is variable width, the D, E, and F look silly. I would rather have the list markers be left aligned than right aligned, but I can't figure out how to ...
How do I save DocumentPaginator initialized with a FlowDocument?
According to MSDN I should be able to use a SerializerProvider to get a SerializerWriter, but creating a SerializerProvider throws an UnauthorizedAccessException: "Access to the registry key 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WinFX Serializers' is denied.".
Is there an...
We have extended the rich text editor to provide us with additional behaviour.
We have a requirement to paste images into the rich text editor and then allow the user to change the text wrapping, so that multiple lines of text wrap around the image.
Images are able to be pasted into the rich text editor and the binary is embeded with...
What would be the easiet (and possibly fast) way to get a BlockCollection object (System.Windows.Documents namespace) which contains a given Block-type object?
I could not find any direct way of doing this using what's available on Block class.
public static BlockCollection FindContainingCollection(Block block)
{
// ???
}
...