Commit d4649ebf by liulongfei

添加自定义控制字段描述

parent 6cee20c5
---------------------------------------------------------------------------------
---------------------------------------------------------------------------------
......@@ -7,7 +7,7 @@ Viz控制字段自定义规则
备注: 多个字段使用“*”分割
字段设置值: VIZ_CUSTOM_CONTROL_FIELD_SET
参数: FieldIdentifier|Value|FieldIdentifier|Value
参数: FieldIdentifier|Value*FieldIdentifier|Value
备注: 多个字段使用“*”分割
Type自定义类型定义: custom_video : 自定义视频
......
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());
}
}
}
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()
{
}
// ==========================================================
// 属性
// ==========================================================
// ==========================================================
// 命令
// ==========================================================
}
}
......@@ -69,6 +69,8 @@
<dxb:BarSubItem Content="帮助">
<dxb:BarButtonItem Content="关于" Glyph="/VIZ.Package.Module.Resource;component/Icons/top_icon_about_20x20.png"
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:MainMenuControl>
</StackPanel>
......
......@@ -44,6 +44,7 @@ namespace VIZ.Package.Module
this.SettingCommand = new VCommand(this.Setting);
this.ResetLayoutCommand = new VCommand(this.ResetLayout);
this.AboutCommand = new VCommand(this.About);
this.AboutCustomControlFieldCommand = new VCommand(this.AboutCustomControlField);
}
/// <summary>
......@@ -392,6 +393,25 @@ namespace VIZ.Package.Module
#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
// =====================================================================
......
......@@ -109,6 +109,10 @@
<DependentUpon>FontListCellEdit.xaml</DependentUpon>
</Compile>
<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\View\ErrorLogWindow.xaml.cs">
<DependentUpon>ErrorLogWindow.xaml</DependentUpon>
......@@ -418,6 +422,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Help\About\View\AboutCustomControlFieldWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Log\View\ErrorLogWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment