Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
VIZ.Package
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘龙飞
VIZ.Package
Commits
d4649ebf
Commit
d4649ebf
authored
Feb 23, 2023
by
liulongfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加自定义控制字段描述
parent
6cee20c5
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
298 additions
and
2 deletions
+298
-2
Doc/控制对象自定义字段.txt
+2
-2
VIZ.Package.Module/Help/About/View/AboutCustomControlFieldWindow.xaml
+207
-0
VIZ.Package.Module/Help/About/View/AboutCustomControlFieldWindow.xaml.cs
+30
-0
VIZ.Package.Module/Help/About/ViewModel/AboutCustomControlFieldWindowModel.cs
+29
-0
VIZ.Package.Module/Main/View/MainTopView.xaml
+2
-0
VIZ.Package.Module/Main/ViewModel/MainTopViewModel.cs
+20
-0
VIZ.Package.Module/VIZ.Package.Module.csproj
+8
-0
No files found.
Doc/控制对象自定义字段.txt
View file @
d4649ebf
-----
----------------------------------------------------------------------------
-----
----------------------------------------------------------------------------
...
@@ -7,7 +7,7 @@ Viz控制字段自定义规则
...
@@ -7,7 +7,7 @@ Viz控制字段自定义规则
备注: 多个字段使用“*”分割
备注: 多个字段使用“*”分割
字段设置值: VIZ_CUSTOM_CONTROL_FIELD_SET
字段设置值: VIZ_CUSTOM_CONTROL_FIELD_SET
参数: FieldIdentifier|Value
|
FieldIdentifier|Value
参数: FieldIdentifier|Value
*
FieldIdentifier|Value
备注: 多个字段使用“*”分割
备注: 多个字段使用“*”分割
Type自定义类型定义: custom_video : 自定义视频
Type自定义类型定义: custom_video : 自定义视频
...
...
VIZ.Package.Module/Help/About/View/AboutCustomControlFieldWindow.xaml
0 → 100644
View file @
d4649ebf
<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>
VIZ.Package.Module/Help/About/View/AboutCustomControlFieldWindow.xaml.cs
0 → 100644
View file @
d4649ebf
using
DevExpress.Xpf.Core
;
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Windows
;
using
System.Windows.Controls
;
using
System.Windows.Data
;
using
System.Windows.Documents
;
using
System.Windows.Input
;
using
System.Windows.Media
;
using
System.Windows.Media.Imaging
;
using
System.Windows.Shapes
;
using
VIZ.Framework.Core
;
namespace
VIZ.Package.Module
{
/// <summary>
/// Interaction logic for AboutCustomControlFieldWindow.xaml
/// </summary>
public
partial
class
AboutCustomControlFieldWindow
:
ThemedWindow
{
public
AboutCustomControlFieldWindow
()
{
InitializeComponent
();
WPFHelper
.
BindingViewModel
(
this
,
new
AboutCustomControlFieldWindowModel
());
}
}
}
VIZ.Package.Module/Help/About/ViewModel/AboutCustomControlFieldWindowModel.cs
0 → 100644
View file @
d4649ebf
using
System
;
using
System.Collections.Generic
;
using
System.Linq
;
using
System.Text
;
using
System.Threading.Tasks
;
using
VIZ.Framework.Core
;
namespace
VIZ.Package.Module
{
/// <summary>
/// 关于自定义控制字段窗口模型
/// </summary>
public
class
AboutCustomControlFieldWindowModel
:
ViewModelBase
{
public
AboutCustomControlFieldWindowModel
()
{
}
// ==========================================================
// 属性
// ==========================================================
// ==========================================================
// 命令
// ==========================================================
}
}
VIZ.Package.Module/Main/View/MainTopView.xaml
View file @
d4649ebf
...
@@ -69,6 +69,8 @@
...
@@ -69,6 +69,8 @@
<dxb:BarSubItem Content="帮助">
<dxb:BarSubItem Content="帮助">
<dxb:BarButtonItem Content="关于" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_about_20x20.png"
<dxb:BarButtonItem Content="关于" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_about_20x20.png"
Command="{Binding Path=AboutCommand}"/>
Command="{Binding Path=AboutCommand}"/>
<dxb:BarButtonItem Content="关于自定义控制字段" Glyph="/VIZ.Package.Module.Resource;component/Icons/icon_custom_32x32.png"
Command="{Binding Path=AboutCustomControlFieldCommand}"/>
</dxb:BarSubItem>
</dxb:BarSubItem>
</dxb:MainMenuControl>
</dxb:MainMenuControl>
</StackPanel>
</StackPanel>
...
...
VIZ.Package.Module/Main/ViewModel/MainTopViewModel.cs
View file @
d4649ebf
...
@@ -44,6 +44,7 @@ namespace VIZ.Package.Module
...
@@ -44,6 +44,7 @@ namespace VIZ.Package.Module
this
.
SettingCommand
=
new
VCommand
(
this
.
Setting
);
this
.
SettingCommand
=
new
VCommand
(
this
.
Setting
);
this
.
ResetLayoutCommand
=
new
VCommand
(
this
.
ResetLayout
);
this
.
ResetLayoutCommand
=
new
VCommand
(
this
.
ResetLayout
);
this
.
AboutCommand
=
new
VCommand
(
this
.
About
);
this
.
AboutCommand
=
new
VCommand
(
this
.
About
);
this
.
AboutCustomControlFieldCommand
=
new
VCommand
(
this
.
AboutCustomControlField
);
}
}
/// <summary>
/// <summary>
...
@@ -392,6 +393,25 @@ namespace VIZ.Package.Module
...
@@ -392,6 +393,25 @@ namespace VIZ.Package.Module
#
endregion
#
endregion
#
region
AboutCustomControlFieldCommand
--
关于自定义控制字段命令
/// <summary>
/// 关于自定义控制字段命令
/// </summary>
public
VCommand
AboutCustomControlFieldCommand
{
get
;
set
;
}
/// <summary>
/// 关于自定义控制字段
/// </summary>
private
void
AboutCustomControlField
()
{
AboutCustomControlFieldWindow
window
=
new
AboutCustomControlFieldWindow
();
window
.
Owner
=
ApplicationDomainEx
.
MainWindow
;
window
.
ShowDialog
();
}
#
endregion
// =====================================================================
// =====================================================================
// Message
// Message
// =====================================================================
// =====================================================================
...
...
VIZ.Package.Module/VIZ.Package.Module.csproj
View file @
d4649ebf
...
@@ -109,6 +109,10 @@
...
@@ -109,6 +109,10 @@
<DependentUpon>FontListCellEdit.xaml</DependentUpon>
<DependentUpon>FontListCellEdit.xaml</DependentUpon>
</Compile>
</Compile>
<Compile Include="Control\Service\IControlService.cs" />
<Compile Include="Control\Service\IControlService.cs" />
<Compile Include="Help\About\ViewModel\AboutCustomControlFieldWindowModel.cs" />
<Compile Include="Help\About\View\AboutCustomControlFieldWindow.xaml.cs">
<DependentUpon>AboutCustomControlFieldWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Log\ViewModel\ErrorLogWindowModel.cs" />
<Compile Include="Log\ViewModel\ErrorLogWindowModel.cs" />
<Compile Include="Log\View\ErrorLogWindow.xaml.cs">
<Compile Include="Log\View\ErrorLogWindow.xaml.cs">
<DependentUpon>ErrorLogWindow.xaml</DependentUpon>
<DependentUpon>ErrorLogWindow.xaml</DependentUpon>
...
@@ -418,6 +422,10 @@
...
@@ -418,6 +422,10 @@
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<SubType>Designer</SubType>
</Page>
</Page>
<Page Include="Help\About\View\AboutCustomControlFieldWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Log\View\ErrorLogWindow.xaml">
<Page Include="Log\View\ErrorLogWindow.xaml">
<SubType>Designer</SubType>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment