1

我正在使用 WPF 富编辑器库开源控件。我从 http://wpfricheditorlibrary.codeplex.com/得到的

该控件的 XML 解析器缺少<Table.Columns>打开和关闭属性,这是在 xaml 中创建表时非常需要的。

所需的解析输出应该是:

 <FlowDocument xml:space="preserve" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <Section FontFamily="tahoma" FontSize="11px"><Paragraph><LineBreak /></Paragraph>
                <Table>
                    **<Table.Columns>**
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                        **</Table.Columns>**
                    <TableRowGroup>
                        <TableRow>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
                <Paragraph>
                    <LineBreak />
                </Paragraph>
            </Section>
        </FlowDocument>

但 xml 解析器返回不包括<Table.Columns>标记:

  <FlowDocument xml:space="preserve" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
            <Section FontFamily="tahoma" FontSize="11px"><Paragraph><LineBreak /></Paragraph>
                <Table>
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableColumn Width="100" />
                    <TableRowGroup>
                        <TableRow>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                            <TableCell BorderThickness="1,1,1,1" BorderBrush="Black" ColumnSpan="1"><Paragraph><LineBreak /></Paragraph></TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
                <Paragraph>
                    <LineBreak />
                </Paragraph>
            </Section>
        </FlowDocument>

请建议我该怎么办?

4

1 回答 1

0

我认为这是解析器中的错误。我提出了一个问题:https ://wpfricheditorlibrary.codeplex.com/workitem/8936

于 2013-08-07T06:19:07.193 回答