<dx:ThemedWindow x:Class="VIZ.Package.Module.AboutCustomControlFieldWindow"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                 xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                 xmlns:dxmvvm="http://schemas.devexpress.com/winfx/2008/xaml/mvvm"
                 xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
                 xmlns:local="clr-namespace:VIZ.Package.Module"
                 mc:Ignorable="d" d:Background="Black"
                 d:DataContext="{d:DesignInstance Type=local:AboutCustomControlFieldWindowModel}" 
                 WindowStartupLocation="CenterScreen"
                 Title="摩羯座播控系统" Height="700" Width="800">
    <Grid>
        <RichTextBox IsReadOnly="True" Background="Transparent" Margin="5" Foreground="White">
            <FlowDocument>
                <!-- 注册字段 -->
                <Paragraph FontSize="18" FontWeight="Bold">Viz控制字段自定义规则</Paragraph>
                <Table>
                    <Table.Columns>
                        <TableColumn Width="150"></TableColumn>
                        <TableColumn Width="Auto"></TableColumn>
                    </Table.Columns>
                    <TableRowGroup>
                        <TableRow>
                            <TableCell>
                                <Paragraph>字段定义方法：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>VIZ_CUSTOM_CONTROL_FIELD_DEFINE</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>字段定义返回格式：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>FieldIdentifier|Value|Type|Description*FieldIdentifier|Value|Type|Description</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>备注：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>多个字段使用“*”分割</Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
                <!-- 设置值 -->
                <Table>
                    <Table.Columns>
                        <TableColumn Width="150"></TableColumn>
                        <TableColumn Width="Auto"></TableColumn>
                    </Table.Columns>
                    <TableRowGroup>
                        <TableRow>
                            <TableCell>
                                <Paragraph>字段设置值：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>VIZ_CUSTOM_CONTROL_FIELD_SET</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>参数：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>FieldIdentifier|Value*FieldIdentifier|Value</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>备注：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>多个字段使用“*”分割</Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>

                <!-- Type自定义类型定义 -->
                <Paragraph FontSize="16" FontWeight="Bold">Type自定义类型定义</Paragraph>
                <Table>
                    <Table.Columns>
                        <TableColumn Width="150"></TableColumn>
                        <TableColumn Width="Auto"></TableColumn>
                    </Table.Columns>
                    <TableRowGroup>
                        <TableRow>
                            <TableCell>
                                <Paragraph>custom_video：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>自定义视频</Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
                <!-- Type默认类型定义 -->
                <Paragraph FontSize="16" FontWeight="Bold">Type默认类型定义</Paragraph>
                <Table>
                    <Table.Columns>
                        <TableColumn Width="150"></TableColumn>
                        <TableColumn Width="Auto"></TableColumn>
                    </Table.Columns>
                    <TableRowGroup>
                        <TableRow>
                            <TableCell>
                                <Paragraph>text：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>文本</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>boolean：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>Bool值</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>richtext：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>富文本</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>image：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>图片</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>integer：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>数字</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>float：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>浮点数字</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>duplet：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>二元组</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>triplet：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>三元组</Paragraph>
                            </TableCell>
                        </TableRow>
                        <TableRow>
                            <TableCell>
                                <Paragraph>font：</Paragraph>
                            </TableCell>
                            <TableCell>
                                <Paragraph>字体</Paragraph>
                            </TableCell>
                        </TableRow>
                    </TableRowGroup>
                </Table>
                <!-- 示例 -->
                <Paragraph FontSize="16" FontWeight="Bold">Viz脚本示例</Paragraph>
                <Paragraph>
                    <Run>Function VIZ_CUSTOM_CONTROL_FIELD_DEFINE() as String</Run>
                    <LineBreak></LineBreak>
                    <Run Text="    "></Run>
                    <Run>VIZ_CUSTOM_CONTROL_FIELD_DEFINE="video_path||custom_video|视频路径*video_loop|0|text|视频是否循环播放"</Run>
                    <LineBreak></LineBreak>
                    <Run>end Function</Run>
                </Paragraph>
                <Paragraph>
                    <Run>sub VIZ_CUSTOM_CONTROL_FIELD_SET(cmd as String)</Run>
                    <LineBreak></LineBreak>
                    <Run Text="    "></Run>
                    <Run>Println cmd</Run>
                    <LineBreak></LineBreak>
                    <Run>end sub</Run>
                </Paragraph>
            </FlowDocument>
        </RichTextBox>
    </Grid>
</dx:ThemedWindow>
