diff --git a/docs/specs/XamlXCode.md b/docs/specs/XamlXCode.md deleted file mode 100644 index 4db3d7269c09..000000000000 --- a/docs/specs/XamlXCode.md +++ /dev/null @@ -1,221 +0,0 @@ -# XAML x:Code Directive - -## Overview - -The `x:Code` directive allows embedding inline C# member declarations directly in XAML files. The XAML source generator extracts these code blocks and emits them as part of a partial class, making them available alongside the code-behind. - -### Motivation - -Currently, any C# logic associated with a XAML page must live in a separate code-behind file. For simple cases — a single event handler, a helper method, a field — switching between XAML and code-behind adds friction. `x:Code` lets developers keep tightly-coupled logic next to the markup that uses it: - -- Small event handlers can live next to the control they serve -- Helper methods used by a single page don't need a separate file -- Prototyping is faster when everything is in one file - -### Example - -```xml - - - - -