using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using Unity;
namespace MultiLayout.UiModule
{
public interface IUiModule2
{
///
/// 控件标题
/// 它的值取决于culture
///
string Title { get; }
///
/// 控件类型
///
ComponentType Type { get; }
///
/// 只能有一个
///
bool IsUnique { get; }
///
/// 控件
/// 创建时,需要给它唯一ID,让加载自己的数据
///
/// 唯一ID
///
FrameworkElement GetComponent(int id, IUnityContainer unityContainer);
///
/// 控件缩略图,用于编辑界面时,大致看看
///
///
FrameworkElement GetThumbnail();
///
/// 给出全部控件ID, 控件自行删除没有的参数
///
///
void MatchParam(int[] IDs);
}
[Flags]
public enum ComponentType
{
///
/// 动态区
///
DynArea=0x1,
///
/// 图表区
///
Graph=0x2,
///
/// 参数设置页
///
Menu=0x4
}
}