Files
MemRelay/projects/4111f53b-afa5-48e1-aaf8-d70a7edc0638/编辑器统一采用按钮触发的后台查找导航.md

22 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: 编辑器统一采用按钮触发的后台查找导航
type: decision
permalink: main/projects/4111f53b-afa5-48e1-aaf8-d70a7edc0638/编辑器统一采用按钮触发的后台查找导航
stable_id: ca3a146f-7b0c-49da-b4a0-e4550f9d4bc7
scope: project
project_id: 4111f53b-afa5-48e1-aaf8-d70a7edc0638
memory_type: decision
status: active
revision: 1
restored_from_commit: 6a6a895eafcca6052e81a14fca103a42635dd1c2
created_at: '2026-09-23T14:53:28.880477+00:00'
updated_at: '2026-09-23T14:53:28.880533+00:00'
tags:
- wpf
- search
- ui
- performance
- decision
---
国家树及编辑器九个分页(常用参数、成本、攻击动作、科技效果、生产/研究、差异、高级 XML、母城卡牌、技能与战术)统一采用独立搜索框 + 搜索上一个/下一个图标按钮。输入查询文字时只重置命中状态,不执行搜索;点击按钮后才使用 Task.Run 在线程池搜索当前数据快照。表格命中后绑定 SelectedItem 并 ScrollIntoView,XML 命中后选择文本并滚动到对应行,国家树一次只显示并选中当前命中以避免大量结果重新渲染。每个搜索框有独立的查询、取消令牌、命中索引和状态。