[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B8TGJA43N8X6BFVWTXC1H":3,"skill-same:01M69B8TGJA43N8X6BFVWTXC1H":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":45,"linkOnly":46,"markdownContent":47,"markdownBody":48,"frontMatter":49,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":17,"ownerHtmlUrl":55,"ownerBlogUrl":56,"ownerDescription":57,"updatedAt":58,"install":59,"resources":72},"01M69B8TGJA43N8X6BFVWTXC1H","reactor-input","Reactor 输入交互处理","Reactor input — gestures (`OnPan`, `OnPinch`, `OnRotate`), pointer events, drag-and-drop (`OnDragStarting`), focus management (`UseElementFocus`, `UseFocus`, `UseFocusTrap`). Use when implementing direct manipulation or custom focus behavior.","Reactor 输入处理——手势（`OnPan`、`OnPinch`、`OnRotate`）、指针事件、拖放（`OnDragStarting`）、焦点管理（`UseElementFocus`、`UseFocus`、`UseFocusTrap`）。在实现直接操作交互或自定义焦点行为时使用。","microsoft\u002Fmicrosoft-ui-reactor","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B6EF21X2GHARCXN2BH1K1",896,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-input\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44],"reactor input","input","gestures","direct","behavior","management","use","drop","focus","events","drag","implementing","custom","when","2026-11-10 10:12:30",false,"---\nname: reactor-input\ndescription: \"Reactor input — gestures (`OnPan`, `OnPinch`, `OnRotate`), pointer events, drag-and-drop (`OnDragStarting`), focus management (`UseElementFocus`, `UseFocus`, `UseFocusTrap`). Use when implementing direct manipulation or custom focus behavior.\"\n---\n\n# Input and Gestures in Reactor\n\nReactor exposes input via **trampoline-dispatched `.On*` modifiers**. Events\nauto-enable their underlying WinUI flags (`ManipulationMode`, `AllowDrop`,\netc.) when you attach a handler, so you never need to set those manually.\n\n\n> **Controlled prop note:** input factories keep the ergonomic\n> `(value, setter)` shape. The underlying controlled element properties are\n> `Optional\u003CT>` so `Unset` can mean \"control-owned\"; direct reads need\n> `.Value` or `.GetValueOrDefault(...)`. See\n> [`migration\u002F050-optional-t.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fguide\u002Fmigration\u002F050-optional-t.md).\n\n## Quick reference\n\n| API | Purpose |\n|-----|---------|\n| `.OnPointerEntered\u002FExited\u002FPressed\u002FReleased\u002FMoved` | Pointer events |\n| `.IsHitTestVisible(bool)` | Opt an element + its subtree out of hit-testing |\n| `.OnTapped()` \u002F `.OnDoubleTapped()` \u002F `.OnRightTapped()` | Tap events |\n| `.OnKeyDown()` \u002F `.OnKeyUp()` | Keyboard events |\n| `.OnPan(...)` | Pan gesture (drag with inertia) |\n| `.OnPinch(...)` | Pinch-to-zoom gesture |\n| `.OnRotate(...)` | Rotation gesture |\n| `.OnLongPress(...)` | Press-and-hold |\n| `.OnGotFocus()` \u002F `.OnLostFocus()` | Focus change events |\n| `UseElementFocus()` | Untyped ref + dispatcher-scheduled focus |\n| `UseElementRef\u003CT>()` | Typed element ref — `.Current` is `T` (no cast) |\n| `.XYFocusUp\u002FDown\u002FLeft\u002FRight(ref)` | Directional focus reference props |\n| `.AccessKey(\"S\")` | Alt+key keyboard shortcut |\n| `.OnDragStart(...)` \u002F `.OnDrop(...)` | Drag-and-drop |\n\n## 1. Pointer events\n\n\u003C!-- index:pointer-input -->\nPointer handlers attach like any other modifier; Reactor installs one stable\ntrampoline per element, so re-rendering with a fresh closure costs no\nre-subscription.\n\n```csharp\nvar (isHovered, setIsHovered) = UseState(false);\n\nreturn Border(child)\n    .OnPointerEntered((s, e) => setIsHovered(true))\n    .OnPointerExited((s, e) => setIsHovered(false))\n    .Background(isHovered ? Theme.SubtleFill : Colors.Transparent);\n```\n\nEvents: `OnPointerEntered`, `OnPointerExited`, `OnPointerPressed`,\n`OnPointerReleased`, `OnPointerMoved`, `OnPointerCanceled`.\n\nThe `(s, e)` signature gives you the sender and `PointerRoutedEventArgs`.\n\n### Opting out of hit-testing\n\n`.IsHitTestVisible(false)` sets `UIElement.IsHitTestVisible` — the element\n**and its subtree** stop being pointer targets, so decorative or overlay\nlayers let pointer events pass through to whatever is underneath.\n\n```csharp\nBorder(overlayGlow).IsHitTestVisible(false)\n```\n\nUnlike `.IsEnabled(false)`, it does not grey the control out or block focus —\nreach for `.IsEnabled(false)` when you want a disabled affordance, and\n`.IsHitTestVisible(false)` when you only want clicks to fall through.\n\n## 2. Tap events\n\n`Border` and other non-control elements are not tab stops by default: a\n`Border` with `.OnTapped(...)` answers the mouse but is skipped by the\nkeyboard. Add `.IsTabStop(true)` and an `.OnKeyDown` Enter\u002FSpace handler, or\nuse a `Button`, whenever the gesture is a real command.\n\n```csharp\nBorder(child)\n    .OnTapped((s, e) => HandleClick())\n    .OnDoubleTapped((s, e) => HandleDoubleClick())\n    .OnRightTapped((s, e) => ShowContextMenu())\n```\n\u003C!-- \u002Findex:pointer-input -->\n\n## 3. Keyboard events\n\n\u003C!-- index:keyboard-input -->\nAttach `.OnKeyDown` \u002F `.OnKeyUp` to any element. The handler receives\n`(sender, KeyRoutedEventArgs)`; set `e.Handled = true` to stop the event\nbubbling. `.OnPreviewKeyDown` \u002F `.OnPreviewKeyUp` run first, during the\ntunnelling phase, and can swallow a key before the focused control sees it.\n\n```csharp\nTextBox(text, setText)\n    .OnKeyDown((s, e) =>\n    {\n        if (e.Key == VirtualKey.Enter)\n        {\n            Submit();\n            e.Handled = true;\n        }\n    })\n```\n\n**`e.Key` is `Windows.System.VirtualKey` — WinRT, not WPF.** It is not\n`System.Windows.Input.Key`, and the member names differ: `VirtualKey` has **no**\n`OemPeriod`, `OemPlus`, `OemMinus` or `Equal`. Punctuation and OEM keys simply\nhave no named member. Two ways to handle them:\n\n```csharp\n\u002F\u002F 1. Compare the numeric virtual-key code for OEM keys.\n.OnKeyDown((s, e) =>\n{\n    if ((int)e.Key == 190) AppendDecimalPoint();   \u002F\u002F VK_OEM_PERIOD '.'\n    if ((int)e.Key == 187) Evaluate();             \u002F\u002F VK_OEM_PLUS   '='\n})\n\n\u002F\u002F 2. Better for text: let WinUI resolve the character for you.\n.OnCharacterReceived((s, e) =>\n{\n    if (e.Character == '.') AppendDecimalPoint();\n    if (e.Character == '=') Evaluate();\n})\n```\n\nNamed members you *can* rely on are the letters (`VirtualKey.A`), digits\n(`VirtualKey.Number0`, `VirtualKey.NumberPad0`), the numpad operators\n(`Add`, `Subtract`, `Multiply`, `Divide`, `Decimal`), and the editing and\nnavigation keys (`Enter`, `Space`, `Back`, `Escape`, `Tab`, `Delete`,\n`Left`, `Right`, `Up`, `Down`).\n\n**Ctrl\u002FAlt chords do not belong on `.OnKeyDown`.** A handler on a `TextBox`\nonly fires while that field has focus, so an app-wide shortcut written that way\nsilently does nothing elsewhere. Use a `Command` with an `Accelerator`, which\nregisters with WinUI's accelerator infrastructure. The `REACTOR_INPUT_001`\nanalyzer flags the mistake.\n\n```csharp\nnew Command\n{\n    Label = \"Save\",\n    Execute = Save,\n    Accelerator = Accelerator(VirtualKey.S, VirtualKeyModifiers.Control),\n}\n```\n\nMind the **scope**, though: an accelerator fires when the surface carrying it is\nin the focused element's ancestor chain, so `Button(save)` on its own covers the\nbutton, not the window. `CommandHost([save], subtree)` widens it to a whole\nsubtree, and a `MenuBar` or `CommandBar` at the window root is what makes a chord\ngenuinely window-wide — those attach to the window's `KeyboardAccelerators`\ncollection. See [commanding](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fguide\u002Fcommanding.md).\n\u003C!-- \u002Findex:keyboard-input -->\n\n## 4. Continuous gestures (Pan, Pinch, Rotate)\n\n\u003C!-- index:pointer-input -->\nGestures follow a **phase lifecycle**: `Began → Changed (repeat) → Ended | Cancelled`.\nAttaching a gesture handler auto-enables the underlying `ManipulationMode`, so\nyou never set that yourself.\n\n### Pan gesture\n\n```csharp\nvar (offset, setOffset) = UseState(new Point(0, 0));\n\nreturn Border(child)\n    .OnPan(\n        minimumDistance: 10,  \u002F\u002F pixels before gesture starts\n        axis: PanAxis.Both,  \u002F\u002F or Horizontal, Vertical\n        withInertia: true,   \u002F\u002F momentum after release\n        onBegan: (e) => { \u002F* pan began *\u002F },\n        onChanged: (e) =>\n        {\n            \u002F\u002F PanGesture.Delta is the per-event movement, a Point — Reactor flattens\n            \u002F\u002F WinUI's ManipulationDelta, so there is no e.Delta.Translation here.\n            setOffset(new Point(offset.X + e.Delta.X, offset.Y + e.Delta.Y));\n        },\n        onEnded: (e) => { \u002F* pan ended *\u002F })\n    .Translation((float)offset.X, (float)offset.Y, 0);\n```\n\n### 60Hz pan pattern (performance-critical)\n\nFor smooth dragging, write `Translation` directly via ref during the\ngesture and only `setState` at the end. The cell must be an **`ElementRef`**\nfrom `UseElementRef\u003CT>` — that is what the reconciler populates. A `UseRef`\nbox is not accepted by `.Ref(...)` and would never point at anything.\n\n```csharp\nvar itemRef = this.UseElementRef\u003CFrameworkElement>();\nvar (finalPos, setFinalPos) = UseState(new Point(0, 0));\n\nreturn Border(child)\n    .Ref(itemRef)\n    .OnPan(\n        onChanged: (e) =>\n        {\n            \u002F\u002F Direct property write — no re-render per frame\n            if (itemRef.Current is { } el)\n            {\n                var t = el.Translation;\n                el.Translation = new System.Numerics.Vector3(\n                    t.X + (float)e.Delta.X,\n                    t.Y + (float)e.Delta.Y,\n                    t.Z);\n            }\n        },\n        onEnded: (e) =>\n        {\n            \u002F\u002F Sync state once at end\n            if (itemRef.Current is { } el)\n                setFinalPos(new Point(el.Translation.X, el.Translation.Y));\n        });\n```\n\n### Pinch and Rotate\n\nBoth gestures carry an absolute value and a per-event delta as flat doubles —\n`Scale`\u002F`ScaleDelta` and `Angle`\u002F`AngleDelta`. There is no nested `e.Delta`\nobject on these two.\n\n```csharp\nvar (scale, setScale) = UseState(1.0f);\n\nreturn Border(child)\n    .OnPinch(\n        onChanged: (e) => setScale(scale * (float)e.ScaleDelta),\n        onEnded: (e) => { })\n    .Scale(scale);\n\n\u002F\u002F Rotation:\nvar (angle, setAngle) = UseState(0f);\n\nreturn Border(child)\n    .OnRotate(\n        onChanged: (e) => setAngle(angle + (float)e.AngleDelta),\n        onEnded: (e) => { })\n    .Rotation(angle);\n```\n\n## 5. Long press\n\nTouch\u002Fpen has built-in long press; mouse requires emulation:\n\n```csharp\nBorder(child)\n    .OnLongPress(\n        onTriggered: (e) => ShowEditMode(),\n        enableMouseEmulation: true)  \u002F\u002F also trigger on mouse press-and-hold\n```\n\u003C!-- \u002Findex:pointer-input -->\n\n## 6. Focus management\n\n\u003C!-- index:element-refs -->\nAn `ElementRef` is the bridge from the declarative tree to a realized WinUI\nelement. Attach it with `.Ref(...)`, then read `.Current` — it is `null` until\nthe element mounts, survives re-renders, and clears on unmount, so the same\ncell reliably points at whatever is mounted now.\n\n### UseElementFocus\n\n```csharp\nvar focusRef = this.UseElementFocus();\n\nreturn VStack(12,\n    TextBox(text, setText).Ref(focusRef.Ref),\n    Button(\"Focus the field\", () => focusRef.RequestFocus())\n);\n```\n\n`UseElementFocus` returns a handle with `.Ref` (attach to the element)\nand `.RequestFocus()` (imperatively focus it). It is a named tuple, so the\ndeconstructed form is equivalent and is what the guide uses — `RequestFocus`\nschedules the focus on the UI dispatcher, so it is safe to call from an effect\nthat runs before the element has mounted:\n\n```csharp\nvar (inputRef, requestFocus) = this.UseElementFocus();\n\nUseEffect(() => requestFocus(), Array.Empty\u003Cobject>());   \u002F\u002F focus on mount\n\nreturn TextBox(name, setName).AutomationName(\"Name\").Ref(inputRef);\n```\n\nFor a synchronous attempt, or one whose success you need to observe, call\n`Microsoft.UI.Reactor.Input.FocusManager.Focus(inputRef)` or\n`FocusManager.FocusAsync(inputRef)` instead.\n\n### UseElementRef\\\u003CT\\> — typed refs\n\nWhen you actually need to call methods on the underlying control (`SelectAll()`\non a `TextBox`, `Focus(FocusState.Programmatic)`, etc.), use the typed variant.\n`.Current` is already typed as `T` — no cast at the call site:\n\n```csharp\nvar inputRef = this.UseElementRef\u003CTextBox>();\n\nUseEffect(() => inputRef.Current?.SelectAll(), Array.Empty\u003Cobject>());\n\nreturn TextBox(query, setQuery).Ref(inputRef);\n```\n\nThe constraint is `T : FrameworkElement`. In `DEBUG` builds Reactor asserts\nthe actual mounted element is a `T`; in release the mismatch is silent and\n`.Current` returns `null`. Spec 033 §3.\n\n### XYFocus reference props\n\nUse XYFocus refs for gamepad\u002Fkeyboard directional navigation graphs.\nThe target can mount before or after the referrer; Reactor rewrites the\nWinUI `UIElement.XYFocus*` property when the referenced element becomes\navailable and clears it when that element unmounts.\n\n```csharp\nvar left = this.UseElementRef\u003CFrameworkElement>();\nvar right = this.UseElementRef\u003CFrameworkElement>();\n\nreturn HStack(8,\n    Button(\"Left\").Ref(left).XYFocusRight(right),\n    Button(\"Right\").Ref(right).XYFocusLeft(left));\n```\n\nFor cyclic focus rings, declare both directions. Do not assign\n`button.XYFocusRight = right.Current` in a handler; that snapshot will\nnot survive late mount or recreation. The same rule covers every reference\nprop — `TeachingTip(..., target: ref)`, `.LabeledBy(ref)`, `.DescribedBy(refs)`,\n`.FlowsTo(refs)` — and `REACTOR_REF_001` flags reading `.Current` to set one.\n\u003C!-- \u002Findex:element-refs -->\n\n### Focus events\n\n```csharp\nTextBox(text, setText)\n    .OnGotFocus((s, e) => ShowSuggestions())\n    .OnLostFocus((s, e) => HideSuggestions())\n```\n\n### Access keys (keyboard shortcuts)\n\n```csharp\nButton(\"Save\", onSave).AccessKey(\"S\")  \u002F\u002F Alt+S\n```\n\n### Tab order\n\n```csharp\nTextBox(name, setName).IsTabStop(true).TabIndex(1)\nTextBox(email, setEmail).IsTabStop(true).TabIndex(2)\nButton(\"Submit\", onSubmit).IsTabStop(true).TabIndex(3)\n```\n\n## 7. Drag and drop\n\nReactor's drag-drop system supports **typed in-process payloads** (via a\ntransfer registry) and standard formats for cross-process drops.\n\n### Basic drag source + drop target\n\n```csharp\n\u002F\u002F Drag source — provide a DragData factory\nBorder(TextBlock(item.Name))\n    .OnDragStart(\n        getData: () => DragData.Typed(item),\n        allowedOperations: DragOperations.Copy | DragOperations.Move)\n\n\u002F\u002F Drop target — typed overload auto-extracts payload\nBorder(TextBlock(\"Drop here\"))\n    .OnDrop\u003CBorderElement, Item>(\n        onDrop: (droppedItem) => HandleDrop(droppedItem))\n```\n\n### Typed in-process payloads\n\nFor type-safe object transfer within the same app, use the typed\n`OnDragStart\u003CT, TPayload>` and `OnDrop\u003CT, TPayload>` overloads:\n\n```csharp\n\u002F\u002F Drag source — typed payload via getPayload factory\nBorder(TextBlock(item.Name))\n    .OnDragStart\u003CBorderElement, Item>(\n        getPayload: () => item,\n        allowedOperations: DragOperations.Move,\n        onEnd: (ctx) =>\n        {\n            if (ctx.CompletedOperation == DragOperations.Move && !ctx.WasCancelled)\n                RemoveItem(item);  \u002F\u002F only remove after confirmed drop\n        })\n\n\u002F\u002F Drop target — typed extraction\nBorder(TextBlock(\"Drop here\"))\n    .OnDrop\u003CBorderElement, Item>(\n        onDrop: (droppedItem) => MoveItem(droppedItem),\n        acceptedOps: DragOperations.Move)\n```\n\n### Untyped drop target (raw DragTargetArgs)\n\nFor cross-process drops or custom handling:\n\n```csharp\nBorder(TextBlock(\"Drop here\"))\n    .OnDragOver((args) =>\n    {\n        args.UIOverride.Caption = \"Copy here\";\n        args.UIOverride.IsCaptionVisible = true;\n    })\n    .OnDrop((args) =>\n    {\n        if (args.Data.TryGetTypedPayload\u003CItem>(out var item))\n            HandleDrop(item);\n    })\n```\n\n### DragUI customization\n\nVia `args.UIOverride` on drag-over handlers:\n\n```csharp\n.OnDragOver((args) =>\n{\n    args.UIOverride.IsCaptionVisible = true;\n    args.UIOverride.IsContentVisible = true;\n    args.UIOverride.IsGlyphVisible = false;\n    args.UIOverride.Caption = \"Move to folder\";\n})\n```\n\n## Critical gotchas\n\n1. **CANNOT combine `OnPan` and `OnTapped` on the same element.** They\n   conflict via `ManipulationMode`. If you need both, put `OnTapped` on a\n   child and `OnPan` on the parent.\n2. **60Hz pan pattern** — for smooth drag UIs, write `Translation` directly\n   via ref during `onChanged`, and only `setState` in `onEnded`.\n3. **Gesture phase lifecycle** — always handle both `onEnded` and\n   `onCancelled` to avoid stuck state.\n4. **`AllowDrop` auto-enables** — just attaching `.OnDrop()` sets the flag.\n   Don't set it manually.\n5. **Typed payloads are in-process only** — `TryGetTypedPayload\u003CT>` returns\n   false for cross-app drops. Always check the return value.\n6. **Use `e.Handled = true`** on keyboard events to prevent bubbling when\n   you've handled the key.\n7. **Mouse long-press needs `enableMouseEmulation: true`** — touch\u002Fpen have\n   native hold detection, but mouse does not.\n","# Input and Gestures in Reactor\n\nReactor exposes input via **trampoline-dispatched `.On*` modifiers**. Events\nauto-enable their underlying WinUI flags (`ManipulationMode`, `AllowDrop`,\netc.) when you attach a handler, so you never need to set those manually.\n\n\n> **Controlled prop note:** input factories keep the ergonomic\n> `(value, setter)` shape. The underlying controlled element properties are\n> `Optional\u003CT>` so `Unset` can mean \"control-owned\"; direct reads need\n> `.Value` or `.GetValueOrDefault(...)`. See\n> [`migration\u002F050-optional-t.md`](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fguide\u002Fmigration\u002F050-optional-t.md).\n\n## Quick reference\n\n| API | Purpose |\n|-----|---------|\n| `.OnPointerEntered\u002FExited\u002FPressed\u002FReleased\u002FMoved` | Pointer events |\n| `.IsHitTestVisible(bool)` | Opt an element + its subtree out of hit-testing |\n| `.OnTapped()` \u002F `.OnDoubleTapped()` \u002F `.OnRightTapped()` | Tap events |\n| `.OnKeyDown()` \u002F `.OnKeyUp()` | Keyboard events |\n| `.OnPan(...)` | Pan gesture (drag with inertia) |\n| `.OnPinch(...)` | Pinch-to-zoom gesture |\n| `.OnRotate(...)` | Rotation gesture |\n| `.OnLongPress(...)` | Press-and-hold |\n| `.OnGotFocus()` \u002F `.OnLostFocus()` | Focus change events |\n| `UseElementFocus()` | Untyped ref + dispatcher-scheduled focus |\n| `UseElementRef\u003CT>()` | Typed element ref — `.Current` is `T` (no cast) |\n| `.XYFocusUp\u002FDown\u002FLeft\u002FRight(ref)` | Directional focus reference props |\n| `.AccessKey(\"S\")` | Alt+key keyboard shortcut |\n| `.OnDragStart(...)` \u002F `.OnDrop(...)` | Drag-and-drop |\n\n## 1. Pointer events\n\n\u003C!-- index:pointer-input -->\nPointer handlers attach like any other modifier; Reactor installs one stable\ntrampoline per element, so re-rendering with a fresh closure costs no\nre-subscription.\n\n```csharp\nvar (isHovered, setIsHovered) = UseState(false);\n\nreturn Border(child)\n    .OnPointerEntered((s, e) => setIsHovered(true))\n    .OnPointerExited((s, e) => setIsHovered(false))\n    .Background(isHovered ? Theme.SubtleFill : Colors.Transparent);\n```\n\nEvents: `OnPointerEntered`, `OnPointerExited`, `OnPointerPressed`,\n`OnPointerReleased`, `OnPointerMoved`, `OnPointerCanceled`.\n\nThe `(s, e)` signature gives you the sender and `PointerRoutedEventArgs`.\n\n### Opting out of hit-testing\n\n`.IsHitTestVisible(false)` sets `UIElement.IsHitTestVisible` — the element\n**and its subtree** stop being pointer targets, so decorative or overlay\nlayers let pointer events pass through to whatever is underneath.\n\n```csharp\nBorder(overlayGlow).IsHitTestVisible(false)\n```\n\nUnlike `.IsEnabled(false)`, it does not grey the control out or block focus —\nreach for `.IsEnabled(false)` when you want a disabled affordance, and\n`.IsHitTestVisible(false)` when you only want clicks to fall through.\n\n## 2. Tap events\n\n`Border` and other non-control elements are not tab stops by default: a\n`Border` with `.OnTapped(...)` answers the mouse but is skipped by the\nkeyboard. Add `.IsTabStop(true)` and an `.OnKeyDown` Enter\u002FSpace handler, or\nuse a `Button`, whenever the gesture is a real command.\n\n```csharp\nBorder(child)\n    .OnTapped((s, e) => HandleClick())\n    .OnDoubleTapped((s, e) => HandleDoubleClick())\n    .OnRightTapped((s, e) => ShowContextMenu())\n```\n\u003C!-- \u002Findex:pointer-input -->\n\n## 3. Keyboard events\n\n\u003C!-- index:keyboard-input -->\nAttach `.OnKeyDown` \u002F `.OnKeyUp` to any element. The handler receives\n`(sender, KeyRoutedEventArgs)`; set `e.Handled = true` to stop the event\nbubbling. `.OnPreviewKeyDown` \u002F `.OnPreviewKeyUp` run first, during the\ntunnelling phase, and can swallow a key before the focused control sees it.\n\n```csharp\nTextBox(text, setText)\n    .OnKeyDown((s, e) =>\n    {\n        if (e.Key == VirtualKey.Enter)\n        {\n            Submit();\n            e.Handled = true;\n        }\n    })\n```\n\n**`e.Key` is `Windows.System.VirtualKey` — WinRT, not WPF.** It is not\n`System.Windows.Input.Key`, and the member names differ: `VirtualKey` has **no**\n`OemPeriod`, `OemPlus`, `OemMinus` or `Equal`. Punctuation and OEM keys simply\nhave no named member. Two ways to handle them:\n\n```csharp\n\u002F\u002F 1. Compare the numeric virtual-key code for OEM keys.\n.OnKeyDown((s, e) =>\n{\n    if ((int)e.Key == 190) AppendDecimalPoint();   \u002F\u002F VK_OEM_PERIOD '.'\n    if ((int)e.Key == 187) Evaluate();             \u002F\u002F VK_OEM_PLUS   '='\n})\n\n\u002F\u002F 2. Better for text: let WinUI resolve the character for you.\n.OnCharacterReceived((s, e) =>\n{\n    if (e.Character == '.') AppendDecimalPoint();\n    if (e.Character == '=') Evaluate();\n})\n```\n\nNamed members you *can* rely on are the letters (`VirtualKey.A`), digits\n(`VirtualKey.Number0`, `VirtualKey.NumberPad0`), the numpad operators\n(`Add`, `Subtract`, `Multiply`, `Divide`, `Decimal`), and the editing and\nnavigation keys (`Enter`, `Space`, `Back`, `Escape`, `Tab`, `Delete`,\n`Left`, `Right`, `Up`, `Down`).\n\n**Ctrl\u002FAlt chords do not belong on `.OnKeyDown`.** A handler on a `TextBox`\nonly fires while that field has focus, so an app-wide shortcut written that way\nsilently does nothing elsewhere. Use a `Command` with an `Accelerator`, which\nregisters with WinUI's accelerator infrastructure. The `REACTOR_INPUT_001`\nanalyzer flags the mistake.\n\n```csharp\nnew Command\n{\n    Label = \"Save\",\n    Execute = Save,\n    Accelerator = Accelerator(VirtualKey.S, VirtualKeyModifiers.Control),\n}\n```\n\nMind the **scope**, though: an accelerator fires when the surface carrying it is\nin the focused element's ancestor chain, so `Button(save)` on its own covers the\nbutton, not the window. `CommandHost([save], subtree)` widens it to a whole\nsubtree, and a `MenuBar` or `CommandBar` at the window root is what makes a chord\ngenuinely window-wide — those attach to the window's `KeyboardAccelerators`\ncollection. See [commanding](..\u002F..\u002F..\u002F..\u002Fdocs\u002Fguide\u002Fcommanding.md).\n\u003C!-- \u002Findex:keyboard-input -->\n\n## 4. Continuous gestures (Pan, Pinch, Rotate)\n\n\u003C!-- index:pointer-input -->\nGestures follow a **phase lifecycle**: `Began → Changed (repeat) → Ended | Cancelled`.\nAttaching a gesture handler auto-enables the underlying `ManipulationMode`, so\nyou never set that yourself.\n\n### Pan gesture\n\n```csharp\nvar (offset, setOffset) = UseState(new Point(0, 0));\n\nreturn Border(child)\n    .OnPan(\n        minimumDistance: 10,  \u002F\u002F pixels before gesture starts\n        axis: PanAxis.Both,  \u002F\u002F or Horizontal, Vertical\n        withInertia: true,   \u002F\u002F momentum after release\n        onBegan: (e) => { \u002F* pan began *\u002F },\n        onChanged: (e) =>\n        {\n            \u002F\u002F PanGesture.Delta is the per-event movement, a Point — Reactor flattens\n            \u002F\u002F WinUI's ManipulationDelta, so there is no e.Delta.Translation here.\n            setOffset(new Point(offset.X + e.Delta.X, offset.Y + e.Delta.Y));\n        },\n        onEnded: (e) => { \u002F* pan ended *\u002F })\n    .Translation((float)offset.X, (float)offset.Y, 0);\n```\n\n### 60Hz pan pattern (performance-critical)\n\nFor smooth dragging, write `Translation` directly via ref during the\ngesture and only `setState` at the end. The cell must be an **`ElementRef`**\nfrom `UseElementRef\u003CT>` — that is what the reconciler populates. A `UseRef`\nbox is not accepted by `.Ref(...)` and would never point at anything.\n\n```csharp\nvar itemRef = this.UseElementRef\u003CFrameworkElement>();\nvar (finalPos, setFinalPos) = UseState(new Point(0, 0));\n\nreturn Border(child)\n    .Ref(itemRef)\n    .OnPan(\n        onChanged: (e) =>\n        {\n            \u002F\u002F Direct property write — no re-render per frame\n            if (itemRef.Current is { } el)\n            {\n                var t = el.Translation;\n                el.Translation = new System.Numerics.Vector3(\n                    t.X + (float)e.Delta.X,\n                    t.Y + (float)e.Delta.Y,\n                    t.Z);\n            }\n        },\n        onEnded: (e) =>\n        {\n            \u002F\u002F Sync state once at end\n            if (itemRef.Current is { } el)\n                setFinalPos(new Point(el.Translation.X, el.Translation.Y));\n        });\n```\n\n### Pinch and Rotate\n\nBoth gestures carry an absolute value and a per-event delta as flat doubles —\n`Scale`\u002F`ScaleDelta` and `Angle`\u002F`AngleDelta`. There is no nested `e.Delta`\nobject on these two.\n\n```csharp\nvar (scale, setScale) = UseState(1.0f);\n\nreturn Border(child)\n    .OnPinch(\n        onChanged: (e) => setScale(scale * (float)e.ScaleDelta),\n        onEnded: (e) => { })\n    .Scale(scale);\n\n\u002F\u002F Rotation:\nvar (angle, setAngle) = UseState(0f);\n\nreturn Border(child)\n    .OnRotate(\n        onChanged: (e) => setAngle(angle + (float)e.AngleDelta),\n        onEnded: (e) => { })\n    .Rotation(angle);\n```\n\n## 5. Long press\n\nTouch\u002Fpen has built-in long press; mouse requires emulation:\n\n```csharp\nBorder(child)\n    .OnLongPress(\n        onTriggered: (e) => ShowEditMode(),\n        enableMouseEmulation: true)  \u002F\u002F also trigger on mouse press-and-hold\n```\n\u003C!-- \u002Findex:pointer-input -->\n\n## 6. Focus management\n\n\u003C!-- index:element-refs -->\nAn `ElementRef` is the bridge from the declarative tree to a realized WinUI\nelement. Attach it with `.Ref(...)`, then read `.Current` — it is `null` until\nthe element mounts, survives re-renders, and clears on unmount, so the same\ncell reliably points at whatever is mounted now.\n\n### UseElementFocus\n\n```csharp\nvar focusRef = this.UseElementFocus();\n\nreturn VStack(12,\n    TextBox(text, setText).Ref(focusRef.Ref),\n    Button(\"Focus the field\", () => focusRef.RequestFocus())\n);\n```\n\n`UseElementFocus` returns a handle with `.Ref` (attach to the element)\nand `.RequestFocus()` (imperatively focus it). It is a named tuple, so the\ndeconstructed form is equivalent and is what the guide uses — `RequestFocus`\nschedules the focus on the UI dispatcher, so it is safe to call from an effect\nthat runs before the element has mounted:\n\n```csharp\nvar (inputRef, requestFocus) = this.UseElementFocus();\n\nUseEffect(() => requestFocus(), Array.Empty\u003Cobject>());   \u002F\u002F focus on mount\n\nreturn TextBox(name, setName).AutomationName(\"Name\").Ref(inputRef);\n```\n\nFor a synchronous attempt, or one whose success you need to observe, call\n`Microsoft.UI.Reactor.Input.FocusManager.Focus(inputRef)` or\n`FocusManager.FocusAsync(inputRef)` instead.\n\n### UseElementRef\\\u003CT\\> — typed refs\n\nWhen you actually need to call methods on the underlying control (`SelectAll()`\non a `TextBox`, `Focus(FocusState.Programmatic)`, etc.), use the typed variant.\n`.Current` is already typed as `T` — no cast at the call site:\n\n```csharp\nvar inputRef = this.UseElementRef\u003CTextBox>();\n\nUseEffect(() => inputRef.Current?.SelectAll(), Array.Empty\u003Cobject>());\n\nreturn TextBox(query, setQuery).Ref(inputRef);\n```\n\nThe constraint is `T : FrameworkElement`. In `DEBUG` builds Reactor asserts\nthe actual mounted element is a `T`; in release the mismatch is silent and\n`.Current` returns `null`. Spec 033 §3.\n\n### XYFocus reference props\n\nUse XYFocus refs for gamepad\u002Fkeyboard directional navigation graphs.\nThe target can mount before or after the referrer; Reactor rewrites the\nWinUI `UIElement.XYFocus*` property when the referenced element becomes\navailable and clears it when that element unmounts.\n\n```csharp\nvar left = this.UseElementRef\u003CFrameworkElement>();\nvar right = this.UseElementRef\u003CFrameworkElement>();\n\nreturn HStack(8,\n    Button(\"Left\").Ref(left).XYFocusRight(right),\n    Button(\"Right\").Ref(right).XYFocusLeft(left));\n```\n\nFor cyclic focus rings, declare both directions. Do not assign\n`button.XYFocusRight = right.Current` in a handler; that snapshot will\nnot survive late mount or recreation. The same rule covers every reference\nprop — `TeachingTip(..., target: ref)`, `.LabeledBy(ref)`, `.DescribedBy(refs)`,\n`.FlowsTo(refs)` — and `REACTOR_REF_001` flags reading `.Current` to set one.\n\u003C!-- \u002Findex:element-refs -->\n\n### Focus events\n\n```csharp\nTextBox(text, setText)\n    .OnGotFocus((s, e) => ShowSuggestions())\n    .OnLostFocus((s, e) => HideSuggestions())\n```\n\n### Access keys (keyboard shortcuts)\n\n```csharp\nButton(\"Save\", onSave).AccessKey(\"S\")  \u002F\u002F Alt+S\n```\n\n### Tab order\n\n```csharp\nTextBox(name, setName).IsTabStop(true).TabIndex(1)\nTextBox(email, setEmail).IsTabStop(true).TabIndex(2)\nButton(\"Submit\", onSubmit).IsTabStop(true).TabIndex(3)\n```\n\n## 7. Drag and drop\n\nReactor's drag-drop system supports **typed in-process payloads** (via a\ntransfer registry) and standard formats for cross-process drops.\n\n### Basic drag source + drop target\n\n```csharp\n\u002F\u002F Drag source — provide a DragData factory\nBorder(TextBlock(item.Name))\n    .OnDragStart(\n        getData: () => DragData.Typed(item),\n        allowedOperations: DragOperations.Copy | DragOperations.Move)\n\n\u002F\u002F Drop target — typed overload auto-extracts payload\nBorder(TextBlock(\"Drop here\"))\n    .OnDrop\u003CBorderElement, Item>(\n        onDrop: (droppedItem) => HandleDrop(droppedItem))\n```\n\n### Typed in-process payloads\n\nFor type-safe object transfer within the same app, use the typed\n`OnDragStart\u003CT, TPayload>` and `OnDrop\u003CT, TPayload>` overloads:\n\n```csharp\n\u002F\u002F Drag source — typed payload via getPayload factory\nBorder(TextBlock(item.Name))\n    .OnDragStart\u003CBorderElement, Item>(\n        getPayload: () => item,\n        allowedOperations: DragOperations.Move,\n        onEnd: (ctx) =>\n        {\n            if (ctx.CompletedOperation == DragOperations.Move && !ctx.WasCancelled)\n                RemoveItem(item);  \u002F\u002F only remove after confirmed drop\n        })\n\n\u002F\u002F Drop target — typed extraction\nBorder(TextBlock(\"Drop here\"))\n    .OnDrop\u003CBorderElement, Item>(\n        onDrop: (droppedItem) => MoveItem(droppedItem),\n        acceptedOps: DragOperations.Move)\n```\n\n### Untyped drop target (raw DragTargetArgs)\n\nFor cross-process drops or custom handling:\n\n```csharp\nBorder(TextBlock(\"Drop here\"))\n    .OnDragOver((args) =>\n    {\n        args.UIOverride.Caption = \"Copy here\";\n        args.UIOverride.IsCaptionVisible = true;\n    })\n    .OnDrop((args) =>\n    {\n        if (args.Data.TryGetTypedPayload\u003CItem>(out var item))\n            HandleDrop(item);\n    })\n```\n\n### DragUI customization\n\nVia `args.UIOverride` on drag-over handlers:\n\n```csharp\n.OnDragOver((args) =>\n{\n    args.UIOverride.IsCaptionVisible = true;\n    args.UIOverride.IsContentVisible = true;\n    args.UIOverride.IsGlyphVisible = false;\n    args.UIOverride.Caption = \"Move to folder\";\n})\n```\n\n## Critical gotchas\n\n1. **CANNOT combine `OnPan` and `OnTapped` on the same element.** They\n   conflict via `ManipulationMode`. If you need both, put `OnTapped` on a\n   child and `OnPan` on the parent.\n2. **60Hz pan pattern** — for smooth drag UIs, write `Translation` directly\n   via ref during `onChanged`, and only `setState` in `onEnded`.\n3. **Gesture phase lifecycle** — always handle both `onEnded` and\n   `onCancelled` to avoid stuck state.\n4. **`AllowDrop` auto-enables** — just attaching `.OnDrop()` sets the flag.\n   Don't set it manually.\n5. **Typed payloads are in-process only** — `TryGetTypedPayload\u003CT>` returns\n   false for cross-app drops. Always check the return value.\n6. **Use `e.Handled = true`** on keyboard events to prevent bubbling when\n   you've handled the key.\n7. **Mouse long-press needs `enableMouseEmulation: true`** — touch\u002Fpen have\n   native hold detection, but mouse does not.\n",{"name":5,"description":7},"main","74791562c11792f7c0e2dd875f1e82b94d70b397","plugins\u002Freactor\u002Fskills\u002Freactor-input",67,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-15 01:08:04",{"source":9,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add microsoft\u002Fmicrosoft-ui-reactor --skill reactor-input",{"tool":65,"command":66},"bunx","bunx skills add microsoft\u002Fmicrosoft-ui-reactor --skill reactor-input",{"tool":68,"command":69},"pnpm","pnpm dlx skills add microsoft\u002Fmicrosoft-ui-reactor --skill reactor-input","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-input\u002FSKILL.md",true,[73],{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"scripts\u002Fgen_joke.py","SCRIPT","脚本",1065,"https:\u002F\u002Fgithub.com\u002Fapache\u002Fflink-agents\u002Fblob\u002Fmain\u002Fe2e-test\u002Fflink-agents-end-to-end-tests-integration\u002Fsrc\u002Ftest\u002Fresources\u002Fskills\u002Fjoke-generator\u002Fscripts\u002Fgen_joke.py",[80,94,125,154,182,209],{"skillNo":81,"name":82,"nameZh":83,"description":17,"descriptionZh":84,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":93,"publishedAt":45},"01M69B94E15PYYWXAGFV832MRK","Charting","图表制作","","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fsrc\u002FReactor.Advanced\u002FCharting\u002Fskill.md",[87,90],{"categoryNo":88,"categoryName":89,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD4CMBM6B4PWSM1NXGT9","数据分析与报告",{"categoryNo":91,"categoryName":92,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5CX980XNXCJKQF70BY","数据分析师",[82],{"skillNo":95,"name":96,"nameZh":97,"description":98,"descriptionZh":99,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":100,"categories":101,"keywords":104,"publishedAt":45},"01M69B92C846XMSNJ4PZGVYY3C","reactor-wrapping","Reactor 控件包装生成","Turn ANY WinUI control — a vendor\u002Fthird-party control, your own custom Control, or a Windows Community Toolkit one — into a first-class declarative Reactor element with the [GenerateReactorWrapper] source generator, zero hand-written wrapper code. Covers auto-inference (props, content, two-way pairs, panel\u002Fitems children, events), the [Wrap*] annotation cheat-sheet, imperative-lifecycle controls, diagnostics, and when to fall back to a hand-written ControlDescriptor.","借助 `[GenerateReactorWrapper]` 源生成器，将任意 WinUI 控件——供应商\u002F第三方控件、自定义 `Control` 或 Windows Community Toolkit 控件——转换为一等公民的声明式 Reactor 元素，无需手写任何包装代码。涵盖自动推断（属性、内容、双向绑定对、面板\u002F条目子元素、事件）、`[Wrap*]` 注解速查表、命令式生命周期控件、诊断，以及何时回退到手写 `ControlDescriptor`。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-wrapping\u002FSKILL.md",[102,103],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[105,106,107,108,109,110,111,112,113,114,115,116,117,43,118,119,44,120,121,122,123,124],"reactor wrapping","windows","toolkit","diagnostics","inference","back","community","panel","ZeRO","winui","declarative","lifecycle","element","controls","auto","generator","cheat","code","hand","with",{"skillNo":126,"name":127,"nameZh":128,"description":129,"descriptionZh":130,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":131,"categories":132,"keywords":135,"publishedAt":45},"01M69B90PW92BQ4YNZYTP4SERB","reactor-windowing","Reactor 顶层窗口管理","Reactor top-level windowing cookbook: WindowSpec, OpenWindow, draggable windows, borderless\u002Ftool windows, placement persistence, taskbar visibility, z-order, aspect ratio, SizeToContent, displays, taskbar integration, and owner-window file\u002Ffolder pickers.","Reactor 顶层窗口开发指南：`WindowSpec`、`OpenWindow`、可拖动窗口、无边框\u002F工具窗口、窗口位置持久化、任务栏可见性、z-order 层级、宽高比、`SizeToContent`、多显示器、任务栏集成，以及基于所有者窗口的文件\u002F文件夹选择器。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-windowing\u002FSKILL.md",[133,134],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[136,137,106,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153],"reactor windowing","remember","tool","open","restore","file","palette","window","progress","top","command palette","command","folder","integration","cookbook","persistence","position","make",{"skillNo":155,"name":156,"nameZh":157,"description":158,"descriptionZh":159,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":160,"categories":161,"keywords":164,"publishedAt":45},"01M69B8Y5Y0VKXADXCN3W1NK89","reactor-recipes","Reactor 即用型代码配方","Paste-ready single-file Reactor recipes indexed by intent — list with add\u002Fdelete\u002Ftoggle, sidebar navigation between pages, form with validation + submit gating, async fetch with loading\u002Ferror\u002Fdata states, themed Win11 card surface. Use a recipe instead of synthesizing from prose: copy, adjust, ship.","按意图索引、可直接粘贴使用的单文件 Reactor 配方——支持增删与切换的列表、页面间侧边栏导航、带校验与提交门控的表单、带加载\u002F错误\u002F数据状态的异步获取、Win11 主题卡片界面。使用现成配方而非根据文字描述自行拼凑：复制、调整、即可交付。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-recipes\u002FSKILL.md",[162,163],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,37,181,141,124],"reactor recipes","recipes","error","ready","single-file","form","fetch","states","loading","submit","card","async","pages","single","recipe","adjust","gating",{"skillNo":183,"name":184,"nameZh":185,"description":186,"descriptionZh":187,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":188,"categories":189,"keywords":192,"publishedAt":45},"01M69B8WNYS31M4P012P2QTX6R","reactor-navigation","Reactor 页面导航与路由","Reactor navigation — `UseNavigation` hook, `NavigationHost` renderer, `NavigationView` sidebar, `TabView` tabs, route params, stack operations, page lifecycle, deep linking, transitions, caching. Use when building multi-page apps or wiring sidebar\u002Ftab navigation.","Reactor 导航——`UseNavigation` 钩子、`NavigationHost` 渲染器、`NavigationView` 侧边栏、`TabView` 标签页、路由参数、栈操作、页面生命周期、深链接、转场动画、缓存。适用于构建多页面应用或接入侧边栏\u002F标签页导航时。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-navigation\u002FSKILL.md",[190,191],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[193,194,195,196,197,198,116,37,199,44,200,201,202,203,204,205,206,207,208],"reactor navigation","navigation","deep","page","multi-page","renderer","apps","caching","wiring","multi","route","stack","linking","transitions","operations","hook",{"skillNo":210,"name":211,"nameZh":212,"description":213,"descriptionZh":214,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":215,"categories":216,"keywords":219,"publishedAt":45},"01M69B8R3MR39KBJ6V4NXGEB2N","reactor-getting-started","Reactor 开发快速入门","Reactor essentials in one place — React-to-Reactor mental model, minimal app shape, hooks, the most-used factories, the critical gotchas, and project setup. This is the only skill you need loaded for typical Reactor work; load topical skills (`reactor-async`, `reactor-design`, etc.) only when the task explicitly calls for them.","将 Reactor 核心要点集中于一处——从 React 到 Reactor 的思维模型、最小应用结构、钩子（hooks）、最常用的工厂函数、关键陷阱以及项目设置。对于典型的 Reactor 工作，只需加载本技能即可；仅当任务明确需要时才加载专题技能（`reactor-async`、`reactor-design` 等）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fmicrosoft-ui-reactor\u002Fblob\u002Fmain\u002Fplugins\u002Freactor\u002Fskills\u002Freactor-getting-started\u002FSKILL.md",[217,218],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[220,221,222,223,224,225,226,227,228,229,44,230,231,232,233,176,234,235,236,237],"reactor getting started","getting started","design","react","app","model","project","hooks","only","critical","you","work","for","mental model","calls","minimal","load","task"]