using MultiLayout.UiModule; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using Unity; namespace FLY.Winder.UI.Client.UiModule { public class UiModule2_CenterWinderPanel : IUiModule2 { /// /// 控件标题 /// 它的值取决于culture /// public string Title=>"中心收卷设置"; public ComponentType Type => ComponentType.Graph; public bool IsUnique => true; /// /// 控件 /// 创建时,需要给它唯一ID,让加载自己的数据 /// /// /// public FrameworkElement GetComponent(int id, IUnityContainer container) { CenterWinderPanel graph = new CenterWinderPanel(); container.BuildUp(graph); return graph; } /// /// 控件缩略图,用于编辑界面时,大致看看 /// 创建时,需要给它唯一ID,让加载自己的数据 /// /// /// public FrameworkElement GetThumbnail() { return new System.Windows.Controls.Grid(); } /// /// 给出全部控件ID, 控件自行删除没有的参数 /// /// public void MatchParam(int[] IDs) { } } }