修改锚点窗口对entry类的依赖,现在可以自行通过泛型扩展。

This commit is contained in:
2026-06-15 09:26:24 +08:00
parent 856c395819
commit 922eb0e450
11 changed files with 394 additions and 26 deletions
+33
View File
@@ -0,0 +1,33 @@
using System.Collections.Generic;
namespace XericUI.VisualForm
{
public interface IAnchorWindowEntry
{
/// <summary>
/// 默认窗口条目列表
/// </summary>
public IEnumerable<WindowEntry> DefaultTypeWindowEntries { get; }
/// <summary>
/// 默认窗口条目数量
/// </summary>
public int DefaultTypeWindowEntriesCount { get; }
/// <summary>
/// 窗口层级变更事件 — 当某个条目的溢出状态发生变化时触发。
/// </summary>
/// <param name="entryIndex">发生变化的条目索引</param>
/// <param name="state">新的溢出状态</param>
public void OnWindowLevelChange(int entryIndex, OverflowState state);
}
public interface IAnchorWindowEntry<T> : IAnchorWindowEntry
where T : WindowEntry
{
/// <summary>
/// 窗口条目列表
/// </summary>
public IList<T> WindowEntries { get; }
}
}