添加单对象添加接口

This commit is contained in:
2025-08-05 10:52:35 +08:00
parent 628f7908df
commit 4df0359d7d
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@
### 翻页管理器
提供一个`FlipPageComponentManager`类,其继承于`XericFlipPageIndexVesselBase`
实现一种基于翻页逻辑的数据虚拟化结构管理器。
父级实现了基础翻页逻辑,而子类实现在此基础上的组件交互逻辑,使用时,需要继承于`FlipPageComponentManager`再实现数据层功能。
比如下面是一个通过翻页管理器控制Xchart.UITable内数据翻页的基础实例:
```
+2
View File
@@ -12,6 +12,8 @@ namespace XericUI.Core.Base
string __EMPTYFIELD;
protected bool PublicFieldNullReference;
protected bool AlreadyAwake { get; private set; }
@@ -545,6 +545,16 @@ namespace XericUI.FlipPage
#region
/// <summary>
/// 添加数据项目
/// </summary>
/// <param name="item"></param>
/// <exception cref="Exception"></exception>
public virtual void AddItem(ItemInfo item)
{
AddItem(item, () => throw new Exception("需要翻页管理器实现相应的页面创建逻辑,并重写添加默认数据方法后才可以使用。"));
}
/// <summary>
/// 添加数据项目
/// </summary>