Sitelet https://github.com/tmds/uno/commit/3e0d5d52d5c50e57f7ffe53dedd37626aa7dd559
Skip to content

Commit 3e0d5d5

Browse files
chore: Adjust heading
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ac868a3 commit 3e0d5d5

1 file changed

Lines changed: 19 additions & 2 deletions

File tree

‎.github/agents/winui-porting-agent.md‎

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,11 +160,28 @@ public partial class Expander
160160
}
161161
```
162162

163-
### 2.5. Partial Implementation Files: `ControlName.partial.mux.cs`
163+
### 2.5. Partial Implementation and Header Files: `ControlName.partial.mux.cs` / `ControlName.partial.h.mux.cs`
164+
165+
For controls with split implementation and header files in C++ (for example, `StackPanel.cpp` / `StackPanel_Partial.cpp` and `StackPanel.h` / `StackPanel_Partial.h`), create matching partial C# files for **both** implementation and header content:
166+
167+
- `StackPanel.cpp` → `StackPanel.mux.cs`
168+
- `StackPanel_Partial.cpp` → `StackPanel.partial.mux.cs`
169+
- `StackPanel.h` → `StackPanel.h.mux.cs`
170+
- `StackPanel_Partial.h` → `StackPanel.partial.h.mux.cs`
171+
172+
Both `.mux.cs` and `.partial.mux.cs` (and their `.h.mux.cs` counterparts) declare the **same C# type** using `partial` so that the combined files faithfully represent the original C++ split.
164173

165-
For controls with split implementation across multiple C++ files (e.g., `StackPanel.cpp` and `StackPanel_Partial.cpp`), create corresponding partial files:
166174
```csharp
167175
// MUX Reference StackPanel_Partial.cpp, commit 9d6fb15c0
176+
177+
using Microsoft.UI.Xaml.Controls;
178+
179+
namespace Microsoft.UI.Xaml.Controls;
180+
181+
public sealed partial class StackPanel
182+
{
183+
// Members ported from StackPanel_Partial.cpp
184+
}
168185
```
169186

170187
---

0 commit comments

Comments
 (0)