在FlowDocument中显示图像

时间:2014-10-03 23:48:49

标签: .net wpf flowdocument flowdocumentscrollviewer

我在设计中看到这些图像,但是当我运行程序时没有图像 我甚至看到了?????当我运行程序时 运行程序时如何显示这些图像?

<FlowDocumentScrollViewer>
    <FlowDocument Style="{StaticResource Flow01}">
            <Table CellSpacing="2">
                <Table.Columns>
                    <TableColumn/>
                    <TableColumn/>
                    <TableColumn/>
                </Table.Columns>
                <TableRowGroup>
                    <TableRow >
                        <TableCell>
                            <Paragraph Style="{StaticResource Par0}">
                                ∩ Intersection
                            </Paragraph>
                        </TableCell>
                        <TableCell>
                            <Paragraph Style="{StaticResource Par0}">
                                ∪ Union
                            </Paragraph>
                        </TableCell>
                        <TableCell>
                            <Paragraph Style="{StaticResource Par0}">
                                - Minus
                            </Paragraph>
                        </TableCell>
                    </TableRow>
                    <TableRow >
                        <TableCell>
                            <Paragraph >?????</Paragraph>
                            <BlockUIContainer>
                                <Image Source="Images\VennIntersection.png" />
                            </BlockUIContainer>
                        </TableCell>
                        <TableCell>
                            <BlockUIContainer>
                                <Image Source="Images\VennUnion.png" />
                            </BlockUIContainer>
                        </TableCell>
                        <TableCell>
                            <BlockUIContainer>
                                <Image Source="Images\VennMinusM.png" />
                            </BlockUIContainer>
                        </TableCell>
                    </TableRow>

                    <TableRow >
                        <TableCell>
                            <Paragraph Style="{StaticResource Par0}">
                                ∩ Intersection
                            </Paragraph>
                        </TableCell>
                        <TableCell>
                            <Paragraph Style="{StaticResource Par0}">
                                ∪ Union
                            </Paragraph>
                        </TableCell>
                        <TableCell>
                            <Paragraph Style="{StaticResource Par0}">
                                - Minus
                            </Paragraph>
                        </TableCell>
                    </TableRow>

                </TableRowGroup>
            </Table>
        </FlowDocument>
</FlowDocumentScrollViewer>

1 个答案:

答案 0 :(得分:0)

我使用它来添加现有项目并取出图像\
但我真的希望有更好的答案