[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6DYJ4NE6F6B0EPCF4NWR9FA":3,"skill-same:01M6DYJ4NE6F6B0EPCF4NWR9FA":129},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":62,"ownerHtmlUrl":63,"ownerBlogUrl":64,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6DYJ4NE6F6B0EPCF4NWR9FA","maui-data-binding",null,"Guidance for .NET MAUI XAML and C# data bindings — compiled bindings, INotifyPropertyChanged \u002F ObservableObject, value converters, binding modes, multi-binding, relative bindings, fallbacks, and MVVM best practices. USE FOR: setting up compiled bindings with x:DataType, implementing INotifyPropertyChanged or CommunityToolkit ObservableObject, creating IValueConverter \u002F IMultiValueConverter, choosing binding modes, configuring BindingContext, relative bindings, binding fallbacks, StringFormat, code-behind SetBinding with lambdas, and enforcing XC0022\u002FXC0025 warnings. DO NOT USE FOR: CollectionView item templates and layouts (use maui-collectionview), Shell navigation data passing (use maui-shell-navigation), dependency injection (use maui-dependency-injection), or animations triggered by property changes (use .NET MAUI animation APIs).","managedcode\u002Fdotnet-skills","managedcode","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F78253589?v=4","01M6DYDJR3EG8KB5G4PC65XCTT","Managed Code","01M6DYDJX0ZT432N04NYJW89DN",515,"MIT","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-MAUI\u002Fskills\u002Fmaui-data-binding\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000033","数据分析师",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"data","maui data binding","maui","binding","navigation","animations","value","modes","for","implementing","dependency injection","dependency-injection","do","guidance","code","mvvm","up","dependency","use","shell","Animation","injection","templates","xaml","best practices","2026-11-10 10:12:30",false,"---\nname: maui-data-binding\ndescription: >-\n  Guidance for .NET MAUI XAML and C# data bindings — compiled bindings,\n  INotifyPropertyChanged \u002F ObservableObject, value converters, binding modes,\n  multi-binding, relative bindings, fallbacks, and MVVM best practices.\n  USE FOR: setting up compiled bindings with x:DataType, implementing\n  INotifyPropertyChanged or CommunityToolkit ObservableObject, creating\n  IValueConverter \u002F IMultiValueConverter, choosing binding modes, configuring\n  BindingContext, relative bindings, binding fallbacks, StringFormat,\n  code-behind SetBinding with lambdas, and enforcing XC0022\u002FXC0025 warnings.\n  DO NOT USE FOR: CollectionView item templates and layouts (use\n  maui-collectionview), Shell navigation data passing (use\n  maui-shell-navigation), dependency injection (use maui-dependency-injection),\n  or animations triggered by property changes (use .NET MAUI animation APIs).\nlicense: MIT\n---\n\n# .NET MAUI Data Binding\n\nWire UI controls to ViewModel properties with compile-time safety, correct\nchange notification, and minimal overhead. Prefer compiled bindings everywhere\nand treat binding warnings as build errors.\n\n## When to Use\n\n- Adding `x:DataType` compiled bindings to a new or existing page\n- Implementing `INotifyPropertyChanged` or CommunityToolkit `ObservableObject`\n- Creating or consuming `IValueConverter` \u002F `IMultiValueConverter`\n- Choosing the correct `BindingMode` for a control property\n- Setting `BindingContext` in XAML or code-behind\n- Using relative bindings (`Self`, `AncestorType`, `TemplatedParent`)\n- Applying `StringFormat`, `FallbackValue`, or `TargetNullValue`\n- Writing AOT-safe code bindings with `SetBinding` and lambdas (.NET 9+)\n\n## When Not to Use\n\n- **CollectionView layouts \u002F templates** — use the `maui-collectionview` skill\n- **Shell navigation parameters** — use the `maui-shell-navigation` skill\n- **Service registration \u002F DI** — use the `maui-dependency-injection` skill\n- **Property-change-triggered animations** — use built-in [.NET MAUI animation APIs](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Fuser-interface\u002Fanimation\u002Fbasic)\n\n## Inputs\n\n- A .NET MAUI project targeting .NET 8 or later\n- XAML pages or C# code-behind where bindings are declared\n- A ViewModel class (or plan to create one)\n\n## Rules That Change the Answer\n\nApply these to every binding answer — they are the differences between \"it compiles\"\nand \"it actually updates the UI\".\n\n| Situation | Do this | Not this |\n|---|---|---|\n| Deciding where `x:DataType` goes | Put it wherever a binding scope starts — the page\u002Fview root, and **each** `DataTemplate` | Scattering it on arbitrary children that share the parent's `BindingContext` |\n| A binding falls back to reflection (XC0022 \u002F XC0023) | Add the right `x:DataType` for that binding scope; for XC0023 remove the explicit `x:DataType=\"{x:Null}\"` | `x:DataType=\"x:Object\"` to silence it — this disables compile-time checking |\n| A `DataTemplate` inherits `x:DataType` from an outer scope (XC0024) | Give the `DataTemplate` its **own** `x:DataType` | Leaving it to resolve against the wrong type |\n| ViewModel change notification | `ObservableObject` + `[ObservableProperty]`, or implement `INotifyPropertyChanged` | A plain POCO base class — bindings will never update |\n| Bindings show blank | Check `BindingContext` is actually set | Assuming the binding path is wrong |\n| Enforcing compiled bindings | Set `MauiEnableXamlCBindingWithSourceCompilation` to `true`, **then** `\u003CWarningsAsErrors>XC0022;XC0025\u003C\u002FWarningsAsErrors>` | Promoting `XC0025` without the switch if the project uses `Source=` \u002F `RelativeSource` bindings |\n\n**Do not** restructure a ViewModel or add a converter that the user did not ask for\nand that fixes no real defect. Adding `x:DataType` is different: when you are\nalready editing a page's bindings, recommending compiled bindings is in scope.\n\n---\n\n## Compiled Bindings — x:DataType Placement\n\nCompiled bindings are **8–20× faster** than reflection-based bindings and are\nrequired for NativeAOT \u002F trimming. Enable them with `x:DataType`.\n\n### Placement rules\n\nSet `x:DataType` **only where `BindingContext` is set**:\n\n1. **Page \u002F View root** — where you assign `BindingContext`.\n2. **DataTemplate** — which creates a new binding scope.\n\nDo **not** scatter `x:DataType` on arbitrary child elements. Adding\n`x:DataType=\"x:Object\"` on children to escape compiled bindings is an\nanti-pattern — it disables compile-time checking and reintroduces reflection.\n\n```xml\n\u003C!-- ✅ Correct: x:DataType at the page root -->\n\u003CContentPage xmlns:vm=\"clr-namespace:MyApp.ViewModels\"\n             x:DataType=\"vm:MainViewModel\">\n    \u003CStackLayout>\n        \u003CLabel Text=\"{Binding Title}\" \u002F>\n        \u003CSlider Value=\"{Binding Progress}\" \u002F>\n    \u003C\u002FStackLayout>\n\u003C\u002FContentPage>\n\n\u003C!-- ❌ Wrong: x:DataType scattered on children -->\n\u003CContentPage x:DataType=\"vm:MainViewModel\">\n    \u003CStackLayout>\n        \u003CLabel Text=\"{Binding Title}\" \u002F>\n        \u003CSlider x:DataType=\"x:Object\" Value=\"{Binding Progress}\" \u002F>\n    \u003C\u002FStackLayout>\n\u003C\u002FContentPage>\n```\n\n### DataTemplate always needs its own x:DataType\n\n```xml\n\u003CCollectionView ItemsSource=\"{Binding People}\">\n    \u003CCollectionView.ItemTemplate>\n        \u003CDataTemplate x:DataType=\"model:Person\">\n            \u003CLabel Text=\"{Binding FullName}\" \u002F>\n        \u003C\u002FDataTemplate>\n    \u003C\u002FCollectionView.ItemTemplate>\n\u003C\u002FCollectionView>\n```\n\n### Enforce binding warnings as errors\n\n| Warning | Meaning |\n|---------|---------|\n| **XC0022** | Binding used **without `x:DataType` in scope** — not compiled, falls back to reflection |\n| **XC0023** | Binding not compiled because `x:DataType` is **explicitly `null`** |\n| **XC0024** | `x:DataType` came from an **outer scope** — annotate the `DataTemplate` with its own `x:DataType` |\n| **XC0025** | Binding not compiled because it has an explicit **`Source`** — enable `\u003CMauiEnableXamlCBindingWithSourceCompilation>` |\n\n> These four codes are **verified against .NET 10 \u002F .NET 11 MAUI**\n> (`Build.Tasks\u002FBuildException.cs`, `ErrorMessages.resx`). Diagnostic numbering is\n> SDK-band-sensitive — re-check against `BuildException.cs` before relying on it on a\n> newer SDK.\n\nAdd to the `.csproj`:\n\n```xml\n\u003C!-- Compile bindings that use Source= as well; otherwise XC0025 fires on every\n     Source= \u002F RelativeSource binding. As of .NET 10\u002F11 this is on by default\n     only for AOT \u002F full-trim builds. -->\n\u003CMauiEnableXamlCBindingWithSourceCompilation>true\u003C\u002FMauiEnableXamlCBindingWithSourceCompilation>\n\u003CWarningsAsErrors>XC0022;XC0025\u003C\u002FWarningsAsErrors>\n```\n\nIf you promote `XC0025` without enabling that switch, make sure the project has no\n`Source=` \u002F `RelativeSource` bindings — otherwise they will be reported.\n\n---\n\n## Binding Modes\n\nSet `Mode` explicitly **only** when overriding the default. Most properties\nalready have the correct default:\n\n| Mode | Direction | Use case |\n|------|-----------|----------|\n| `OneWay` | Source → Target | Display-only (default for most properties) |\n| `TwoWay` | Source ↔ Target | Editable controls (`Entry.Text`, `Switch.IsToggled`) |\n| `OneWayToSource` | Target → Source | Read user input without pushing back to UI |\n| `OneTime` | Source → Target (once) | Static values; no change-tracking overhead |\n\n```xml\n\u003C!-- ✅ Defaults — omit Mode -->\n\u003CLabel Text=\"{Binding Score}\" \u002F>\n\u003CEntry Text=\"{Binding UserName}\" \u002F>\n\u003CSwitch IsToggled=\"{Binding DarkMode}\" \u002F>\n\n\u003C!-- ✅ Override only when needed -->\n\u003CLabel Text=\"{Binding Title, Mode=OneTime}\" \u002F>\n\u003CEntry Text=\"{Binding SearchQuery, Mode=OneWayToSource}\" \u002F>\n\n\u003C!-- ❌ Redundant — adds noise -->\n\u003CLabel Text=\"{Binding Score, Mode=OneWay}\" \u002F>\n\u003CEntry Text=\"{Binding UserName, Mode=TwoWay}\" \u002F>\n```\n\n---\n\n## BindingContext and Property Paths\n\nEvery `BindableObject` inherits `BindingContext` from its parent unless\nexplicitly set. Property paths support dot notation and indexers:\n\n```xml\n\u003CLabel Text=\"{Binding Address.City}\" \u002F>\n\u003CLabel Text=\"{Binding Items[0].Name}\" \u002F>\n```\n\nSet `BindingContext` in XAML:\n\n```xml\n\u003CContentPage xmlns:vm=\"clr-namespace:MyApp.ViewModels\"\n             x:DataType=\"vm:MainViewModel\">\n    \u003CContentPage.BindingContext>\n        \u003Cvm:MainViewModel \u002F>\n    \u003C\u002FContentPage.BindingContext>\n\u003C\u002FContentPage>\n```\n\nOr in code-behind (preferred with DI):\n\n```csharp\npublic MainPage(MainViewModel vm)\n{\n    InitializeComponent();\n    BindingContext = vm;\n}\n```\n\n---\n\n## INotifyPropertyChanged and ObservableObject\n\n### Manual implementation\n\n```csharp\npublic class MainViewModel : INotifyPropertyChanged\n{\n    public event PropertyChangedEventHandler? PropertyChanged;\n\n    private string _title = string.Empty;\n    public string Title\n    {\n        get => _title;\n        set\n        {\n            if (_title != value)\n            {\n                _title = value;\n                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Title)));\n            }\n        }\n    }\n}\n```\n\n### CommunityToolkit.Mvvm (recommended)\n\n```csharp\nusing CommunityToolkit.Mvvm.ComponentModel;\nusing CommunityToolkit.Mvvm.Input;\n\npublic partial class MainViewModel : ObservableObject\n{\n    [ObservableProperty]\n    private string _title = string.Empty;\n\n    [RelayCommand]\n    private async Task LoadDataAsync() { \u002F* ... *\u002F }\n}\n```\n\nThe source generator creates the `Title` property, `PropertyChanged` raise,\nand `LoadDataCommand` automatically.\n\n---\n\n## Value Converters — IValueConverter\n\nImplement `Convert` (source → target) and `ConvertBack` (target → source):\n\n```csharp\npublic class IntToBoolConverter : IValueConverter\n{\n    public object? Convert(object? value, Type targetType,\n        object? parameter, CultureInfo culture)\n        => value is int i && i != 0;\n\n    public object? ConvertBack(object? value, Type targetType,\n        object? parameter, CultureInfo culture)\n        => value is true ? 1 : 0;\n}\n```\n\nDeclare in XAML resources and consume:\n\n```xml\n\u003CContentPage.Resources>\n    \u003Clocal:IntToBoolConverter x:Key=\"IntToBool\" \u002F>\n\u003C\u002FContentPage.Resources>\n\n\u003CSwitch IsToggled=\"{Binding Count, Converter={StaticResource IntToBool}}\" \u002F>\n```\n\n`ConverterParameter` is always passed as a **string** — parse inside `Convert`:\n\n```xml\n\u003CLabel Text=\"{Binding Score, Converter={StaticResource ThresholdConverter},\n              ConverterParameter=50}\" \u002F>\n```\n\n---\n\n## Multi-Binding\n\nCombine multiple source values with `IMultiValueConverter`:\n\n```xml\n\u003CLabel>\n    \u003CLabel.Text>\n        \u003CMultiBinding Converter=\"{StaticResource FullNameConverter}\">\n            \u003CBinding Path=\"FirstName\" \u002F>\n            \u003CBinding Path=\"LastName\" \u002F>\n        \u003C\u002FMultiBinding>\n    \u003C\u002FLabel.Text>\n\u003C\u002FLabel>\n```\n\n```csharp\npublic class FullNameConverter : IMultiValueConverter\n{\n    public object Convert(object[] values, Type targetType,\n        object parameter, CultureInfo culture)\n    {\n        if (values.Length == 2 && values[0] is string first\n            && values[1] is string last)\n            return $\"{first} {last}\";\n        return string.Empty;\n    }\n\n    public object[] ConvertBack(object value, Type[] targetTypes,\n        object parameter, CultureInfo culture)\n        => throw new NotSupportedException();\n}\n```\n\n---\n\n## Relative Bindings\n\n| Source | Syntax | Use case |\n|--------|--------|----------|\n| Self | `{Binding Source={RelativeSource Self}, Path=WidthRequest}` | Bind to own properties |\n| Ancestor | `{Binding BindingContext.Title, Source={RelativeSource AncestorType={x:Type ContentPage}}}` | Reach parent BindingContext |\n| TemplatedParent | `{Binding Source={RelativeSource TemplatedParent}, Path=Padding}` | Inside ControlTemplate |\n\n```xml\n\u003C!-- Square box: Height = Width -->\n\u003CBoxView WidthRequest=\"100\"\n         HeightRequest=\"{Binding Source={RelativeSource Self}, Path=WidthRequest}\" \u002F>\n```\n\n---\n\n## StringFormat\n\nUse `Binding.StringFormat` for simple display formatting without a converter:\n\n```xml\n\u003CLabel Text=\"{Binding Price, StringFormat='Total: {0:C2}'}\" \u002F>\n\u003CLabel Text=\"{Binding DueDate, StringFormat='{0:MMM dd, yyyy}'}\" \u002F>\n```\n\nWrap the format string in single quotes when it contains commas or braces.\n\n---\n\n## Binding Fallbacks\n\n- **FallbackValue** — used when the binding path cannot be resolved or the\n  converter throws.\n- **TargetNullValue** — used when the bound value is `null`.\n\n```xml\n\u003CLabel Text=\"{Binding MiddleName, TargetNullValue='(none)',\n              FallbackValue='unavailable'}\" \u002F>\n\u003CImage Source=\"{Binding AvatarUrl, TargetNullValue='default_avatar.png'}\" \u002F>\n```\n\n---\n\n## .NET 9+ Code Bindings (AOT-safe)\n\nFully AOT-safe, no reflection:\n\n```csharp\nlabel.SetBinding(Label.TextProperty,\n    static (PersonViewModel vm) => vm.FullName);\n\nentry.SetBinding(Entry.TextProperty,\n    static (PersonViewModel vm) => vm.Age,\n    mode: BindingMode.TwoWay,\n    converter: new IntToStringConverter());\n```\n\n---\n\n## Threading\n\nMAUI automatically marshals `PropertyChanged` to the UI thread — you can raise\nit from any thread. **However**, direct `ObservableCollection` mutations\n(Add \u002F Remove) from background threads may crash:\n\n```csharp\n\u002F\u002F ✅ Safe — PropertyChanged is auto-marshalled\nawait Task.Run(() => Title = \"Loaded\");\n\n\u002F\u002F ⚠️ ObservableCollection.Add — dispatch to UI thread\nMainThread.BeginInvokeOnMainThread(() => Items.Add(newItem));\n```\n\n---\n\n## Common Pitfalls\n\n| Mistake | Fix |\n|---------|-----|\n| Missing `x:DataType` — bindings silently fall back to reflection | Add `x:DataType` at page root and every `DataTemplate`; promote `XC0022` (see [Enforce binding warnings as errors](#enforce-binding-warnings-as-errors)) |\n| Forgetting to set `BindingContext` | Set in XAML (`\u003CPage.BindingContext>`) or inject via constructor |\n| Specifying redundant `Mode=OneWay` \u002F `Mode=TwoWay` | Omit `Mode` when using the control's default |\n| ViewModel does not implement `INotifyPropertyChanged` | Use `ObservableObject` from CommunityToolkit.Mvvm or implement manually |\n| Mutating `ObservableCollection` off the UI thread | Wrap mutations in `MainThread.BeginInvokeOnMainThread` |\n| Complex converter chains in hot paths | Pre-compute values in the ViewModel instead |\n| Using `x:DataType=\"x:Object\"` to escape compiled bindings | Restructure bindings; keep compile-time safety |\n| Binding to non-public properties | Binding targets must be `public` properties (fields are ignored) |\n\n---\n\n## References\n\n- [Data binding overview](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002F)\n- [Compiled bindings](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Fcompiled-bindings)\n- [Value converters](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Fconverters)\n- [Relative bindings](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Frelative-bindings)\n- [Multi-bindings](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Fmultibindings)\n- [CommunityToolkit.Mvvm](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcommunitytoolkit\u002Fmvvm\u002F)\n","# .NET MAUI Data Binding\n\nWire UI controls to ViewModel properties with compile-time safety, correct\nchange notification, and minimal overhead. Prefer compiled bindings everywhere\nand treat binding warnings as build errors.\n\n## When to Use\n\n- Adding `x:DataType` compiled bindings to a new or existing page\n- Implementing `INotifyPropertyChanged` or CommunityToolkit `ObservableObject`\n- Creating or consuming `IValueConverter` \u002F `IMultiValueConverter`\n- Choosing the correct `BindingMode` for a control property\n- Setting `BindingContext` in XAML or code-behind\n- Using relative bindings (`Self`, `AncestorType`, `TemplatedParent`)\n- Applying `StringFormat`, `FallbackValue`, or `TargetNullValue`\n- Writing AOT-safe code bindings with `SetBinding` and lambdas (.NET 9+)\n\n## When Not to Use\n\n- **CollectionView layouts \u002F templates** — use the `maui-collectionview` skill\n- **Shell navigation parameters** — use the `maui-shell-navigation` skill\n- **Service registration \u002F DI** — use the `maui-dependency-injection` skill\n- **Property-change-triggered animations** — use built-in [.NET MAUI animation APIs](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Fuser-interface\u002Fanimation\u002Fbasic)\n\n## Inputs\n\n- A .NET MAUI project targeting .NET 8 or later\n- XAML pages or C# code-behind where bindings are declared\n- A ViewModel class (or plan to create one)\n\n## Rules That Change the Answer\n\nApply these to every binding answer — they are the differences between \"it compiles\"\nand \"it actually updates the UI\".\n\n| Situation | Do this | Not this |\n|---|---|---|\n| Deciding where `x:DataType` goes | Put it wherever a binding scope starts — the page\u002Fview root, and **each** `DataTemplate` | Scattering it on arbitrary children that share the parent's `BindingContext` |\n| A binding falls back to reflection (XC0022 \u002F XC0023) | Add the right `x:DataType` for that binding scope; for XC0023 remove the explicit `x:DataType=\"{x:Null}\"` | `x:DataType=\"x:Object\"` to silence it — this disables compile-time checking |\n| A `DataTemplate` inherits `x:DataType` from an outer scope (XC0024) | Give the `DataTemplate` its **own** `x:DataType` | Leaving it to resolve against the wrong type |\n| ViewModel change notification | `ObservableObject` + `[ObservableProperty]`, or implement `INotifyPropertyChanged` | A plain POCO base class — bindings will never update |\n| Bindings show blank | Check `BindingContext` is actually set | Assuming the binding path is wrong |\n| Enforcing compiled bindings | Set `MauiEnableXamlCBindingWithSourceCompilation` to `true`, **then** `\u003CWarningsAsErrors>XC0022;XC0025\u003C\u002FWarningsAsErrors>` | Promoting `XC0025` without the switch if the project uses `Source=` \u002F `RelativeSource` bindings |\n\n**Do not** restructure a ViewModel or add a converter that the user did not ask for\nand that fixes no real defect. Adding `x:DataType` is different: when you are\nalready editing a page's bindings, recommending compiled bindings is in scope.\n\n---\n\n## Compiled Bindings — x:DataType Placement\n\nCompiled bindings are **8–20× faster** than reflection-based bindings and are\nrequired for NativeAOT \u002F trimming. Enable them with `x:DataType`.\n\n### Placement rules\n\nSet `x:DataType` **only where `BindingContext` is set**:\n\n1. **Page \u002F View root** — where you assign `BindingContext`.\n2. **DataTemplate** — which creates a new binding scope.\n\nDo **not** scatter `x:DataType` on arbitrary child elements. Adding\n`x:DataType=\"x:Object\"` on children to escape compiled bindings is an\nanti-pattern — it disables compile-time checking and reintroduces reflection.\n\n```xml\n\u003C!-- ✅ Correct: x:DataType at the page root -->\n\u003CContentPage xmlns:vm=\"clr-namespace:MyApp.ViewModels\"\n             x:DataType=\"vm:MainViewModel\">\n    \u003CStackLayout>\n        \u003CLabel Text=\"{Binding Title}\" \u002F>\n        \u003CSlider Value=\"{Binding Progress}\" \u002F>\n    \u003C\u002FStackLayout>\n\u003C\u002FContentPage>\n\n\u003C!-- ❌ Wrong: x:DataType scattered on children -->\n\u003CContentPage x:DataType=\"vm:MainViewModel\">\n    \u003CStackLayout>\n        \u003CLabel Text=\"{Binding Title}\" \u002F>\n        \u003CSlider x:DataType=\"x:Object\" Value=\"{Binding Progress}\" \u002F>\n    \u003C\u002FStackLayout>\n\u003C\u002FContentPage>\n```\n\n### DataTemplate always needs its own x:DataType\n\n```xml\n\u003CCollectionView ItemsSource=\"{Binding People}\">\n    \u003CCollectionView.ItemTemplate>\n        \u003CDataTemplate x:DataType=\"model:Person\">\n            \u003CLabel Text=\"{Binding FullName}\" \u002F>\n        \u003C\u002FDataTemplate>\n    \u003C\u002FCollectionView.ItemTemplate>\n\u003C\u002FCollectionView>\n```\n\n### Enforce binding warnings as errors\n\n| Warning | Meaning |\n|---------|---------|\n| **XC0022** | Binding used **without `x:DataType` in scope** — not compiled, falls back to reflection |\n| **XC0023** | Binding not compiled because `x:DataType` is **explicitly `null`** |\n| **XC0024** | `x:DataType` came from an **outer scope** — annotate the `DataTemplate` with its own `x:DataType` |\n| **XC0025** | Binding not compiled because it has an explicit **`Source`** — enable `\u003CMauiEnableXamlCBindingWithSourceCompilation>` |\n\n> These four codes are **verified against .NET 10 \u002F .NET 11 MAUI**\n> (`Build.Tasks\u002FBuildException.cs`, `ErrorMessages.resx`). Diagnostic numbering is\n> SDK-band-sensitive — re-check against `BuildException.cs` before relying on it on a\n> newer SDK.\n\nAdd to the `.csproj`:\n\n```xml\n\u003C!-- Compile bindings that use Source= as well; otherwise XC0025 fires on every\n     Source= \u002F RelativeSource binding. As of .NET 10\u002F11 this is on by default\n     only for AOT \u002F full-trim builds. -->\n\u003CMauiEnableXamlCBindingWithSourceCompilation>true\u003C\u002FMauiEnableXamlCBindingWithSourceCompilation>\n\u003CWarningsAsErrors>XC0022;XC0025\u003C\u002FWarningsAsErrors>\n```\n\nIf you promote `XC0025` without enabling that switch, make sure the project has no\n`Source=` \u002F `RelativeSource` bindings — otherwise they will be reported.\n\n---\n\n## Binding Modes\n\nSet `Mode` explicitly **only** when overriding the default. Most properties\nalready have the correct default:\n\n| Mode | Direction | Use case |\n|------|-----------|----------|\n| `OneWay` | Source → Target | Display-only (default for most properties) |\n| `TwoWay` | Source ↔ Target | Editable controls (`Entry.Text`, `Switch.IsToggled`) |\n| `OneWayToSource` | Target → Source | Read user input without pushing back to UI |\n| `OneTime` | Source → Target (once) | Static values; no change-tracking overhead |\n\n```xml\n\u003C!-- ✅ Defaults — omit Mode -->\n\u003CLabel Text=\"{Binding Score}\" \u002F>\n\u003CEntry Text=\"{Binding UserName}\" \u002F>\n\u003CSwitch IsToggled=\"{Binding DarkMode}\" \u002F>\n\n\u003C!-- ✅ Override only when needed -->\n\u003CLabel Text=\"{Binding Title, Mode=OneTime}\" \u002F>\n\u003CEntry Text=\"{Binding SearchQuery, Mode=OneWayToSource}\" \u002F>\n\n\u003C!-- ❌ Redundant — adds noise -->\n\u003CLabel Text=\"{Binding Score, Mode=OneWay}\" \u002F>\n\u003CEntry Text=\"{Binding UserName, Mode=TwoWay}\" \u002F>\n```\n\n---\n\n## BindingContext and Property Paths\n\nEvery `BindableObject` inherits `BindingContext` from its parent unless\nexplicitly set. Property paths support dot notation and indexers:\n\n```xml\n\u003CLabel Text=\"{Binding Address.City}\" \u002F>\n\u003CLabel Text=\"{Binding Items[0].Name}\" \u002F>\n```\n\nSet `BindingContext` in XAML:\n\n```xml\n\u003CContentPage xmlns:vm=\"clr-namespace:MyApp.ViewModels\"\n             x:DataType=\"vm:MainViewModel\">\n    \u003CContentPage.BindingContext>\n        \u003Cvm:MainViewModel \u002F>\n    \u003C\u002FContentPage.BindingContext>\n\u003C\u002FContentPage>\n```\n\nOr in code-behind (preferred with DI):\n\n```csharp\npublic MainPage(MainViewModel vm)\n{\n    InitializeComponent();\n    BindingContext = vm;\n}\n```\n\n---\n\n## INotifyPropertyChanged and ObservableObject\n\n### Manual implementation\n\n```csharp\npublic class MainViewModel : INotifyPropertyChanged\n{\n    public event PropertyChangedEventHandler? PropertyChanged;\n\n    private string _title = string.Empty;\n    public string Title\n    {\n        get => _title;\n        set\n        {\n            if (_title != value)\n            {\n                _title = value;\n                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Title)));\n            }\n        }\n    }\n}\n```\n\n### CommunityToolkit.Mvvm (recommended)\n\n```csharp\nusing CommunityToolkit.Mvvm.ComponentModel;\nusing CommunityToolkit.Mvvm.Input;\n\npublic partial class MainViewModel : ObservableObject\n{\n    [ObservableProperty]\n    private string _title = string.Empty;\n\n    [RelayCommand]\n    private async Task LoadDataAsync() { \u002F* ... *\u002F }\n}\n```\n\nThe source generator creates the `Title` property, `PropertyChanged` raise,\nand `LoadDataCommand` automatically.\n\n---\n\n## Value Converters — IValueConverter\n\nImplement `Convert` (source → target) and `ConvertBack` (target → source):\n\n```csharp\npublic class IntToBoolConverter : IValueConverter\n{\n    public object? Convert(object? value, Type targetType,\n        object? parameter, CultureInfo culture)\n        => value is int i && i != 0;\n\n    public object? ConvertBack(object? value, Type targetType,\n        object? parameter, CultureInfo culture)\n        => value is true ? 1 : 0;\n}\n```\n\nDeclare in XAML resources and consume:\n\n```xml\n\u003CContentPage.Resources>\n    \u003Clocal:IntToBoolConverter x:Key=\"IntToBool\" \u002F>\n\u003C\u002FContentPage.Resources>\n\n\u003CSwitch IsToggled=\"{Binding Count, Converter={StaticResource IntToBool}}\" \u002F>\n```\n\n`ConverterParameter` is always passed as a **string** — parse inside `Convert`:\n\n```xml\n\u003CLabel Text=\"{Binding Score, Converter={StaticResource ThresholdConverter},\n              ConverterParameter=50}\" \u002F>\n```\n\n---\n\n## Multi-Binding\n\nCombine multiple source values with `IMultiValueConverter`:\n\n```xml\n\u003CLabel>\n    \u003CLabel.Text>\n        \u003CMultiBinding Converter=\"{StaticResource FullNameConverter}\">\n            \u003CBinding Path=\"FirstName\" \u002F>\n            \u003CBinding Path=\"LastName\" \u002F>\n        \u003C\u002FMultiBinding>\n    \u003C\u002FLabel.Text>\n\u003C\u002FLabel>\n```\n\n```csharp\npublic class FullNameConverter : IMultiValueConverter\n{\n    public object Convert(object[] values, Type targetType,\n        object parameter, CultureInfo culture)\n    {\n        if (values.Length == 2 && values[0] is string first\n            && values[1] is string last)\n            return $\"{first} {last}\";\n        return string.Empty;\n    }\n\n    public object[] ConvertBack(object value, Type[] targetTypes,\n        object parameter, CultureInfo culture)\n        => throw new NotSupportedException();\n}\n```\n\n---\n\n## Relative Bindings\n\n| Source | Syntax | Use case |\n|--------|--------|----------|\n| Self | `{Binding Source={RelativeSource Self}, Path=WidthRequest}` | Bind to own properties |\n| Ancestor | `{Binding BindingContext.Title, Source={RelativeSource AncestorType={x:Type ContentPage}}}` | Reach parent BindingContext |\n| TemplatedParent | `{Binding Source={RelativeSource TemplatedParent}, Path=Padding}` | Inside ControlTemplate |\n\n```xml\n\u003C!-- Square box: Height = Width -->\n\u003CBoxView WidthRequest=\"100\"\n         HeightRequest=\"{Binding Source={RelativeSource Self}, Path=WidthRequest}\" \u002F>\n```\n\n---\n\n## StringFormat\n\nUse `Binding.StringFormat` for simple display formatting without a converter:\n\n```xml\n\u003CLabel Text=\"{Binding Price, StringFormat='Total: {0:C2}'}\" \u002F>\n\u003CLabel Text=\"{Binding DueDate, StringFormat='{0:MMM dd, yyyy}'}\" \u002F>\n```\n\nWrap the format string in single quotes when it contains commas or braces.\n\n---\n\n## Binding Fallbacks\n\n- **FallbackValue** — used when the binding path cannot be resolved or the\n  converter throws.\n- **TargetNullValue** — used when the bound value is `null`.\n\n```xml\n\u003CLabel Text=\"{Binding MiddleName, TargetNullValue='(none)',\n              FallbackValue='unavailable'}\" \u002F>\n\u003CImage Source=\"{Binding AvatarUrl, TargetNullValue='default_avatar.png'}\" \u002F>\n```\n\n---\n\n## .NET 9+ Code Bindings (AOT-safe)\n\nFully AOT-safe, no reflection:\n\n```csharp\nlabel.SetBinding(Label.TextProperty,\n    static (PersonViewModel vm) => vm.FullName);\n\nentry.SetBinding(Entry.TextProperty,\n    static (PersonViewModel vm) => vm.Age,\n    mode: BindingMode.TwoWay,\n    converter: new IntToStringConverter());\n```\n\n---\n\n## Threading\n\nMAUI automatically marshals `PropertyChanged` to the UI thread — you can raise\nit from any thread. **However**, direct `ObservableCollection` mutations\n(Add \u002F Remove) from background threads may crash:\n\n```csharp\n\u002F\u002F ✅ Safe — PropertyChanged is auto-marshalled\nawait Task.Run(() => Title = \"Loaded\");\n\n\u002F\u002F ⚠️ ObservableCollection.Add — dispatch to UI thread\nMainThread.BeginInvokeOnMainThread(() => Items.Add(newItem));\n```\n\n---\n\n## Common Pitfalls\n\n| Mistake | Fix |\n|---------|-----|\n| Missing `x:DataType` — bindings silently fall back to reflection | Add `x:DataType` at page root and every `DataTemplate`; promote `XC0022` (see [Enforce binding warnings as errors](#enforce-binding-warnings-as-errors)) |\n| Forgetting to set `BindingContext` | Set in XAML (`\u003CPage.BindingContext>`) or inject via constructor |\n| Specifying redundant `Mode=OneWay` \u002F `Mode=TwoWay` | Omit `Mode` when using the control's default |\n| ViewModel does not implement `INotifyPropertyChanged` | Use `ObservableObject` from CommunityToolkit.Mvvm or implement manually |\n| Mutating `ObservableCollection` off the UI thread | Wrap mutations in `MainThread.BeginInvokeOnMainThread` |\n| Complex converter chains in hot paths | Pre-compute values in the ViewModel instead |\n| Using `x:DataType=\"x:Object\"` to escape compiled bindings | Restructure bindings; keep compile-time safety |\n| Binding to non-public properties | Binding targets must be `public` properties (fields are ignored) |\n\n---\n\n## References\n\n- [Data binding overview](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002F)\n- [Compiled bindings](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Fcompiled-bindings)\n- [Value converters](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Fconverters)\n- [Relative bindings](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Frelative-bindings)\n- [Multi-bindings](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fmaui\u002Ffundamentals\u002Fdata-binding\u002Fmultibindings)\n- [CommunityToolkit.Mvvm](https:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fcommunitytoolkit\u002Fmvvm\u002F)\n",{"name":5,"license":15,"description":7},"main","497cc9aba79a931ac6fb8d36a48cc22fe3d6d74b","catalog\u002FFrameworks\u002FOfficial-DotNet-MAUI\u002Fskills\u002Fmaui-data-binding",41,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills","https:\u002F\u002Fskills.managed-code.com","https:\u002F\u002Fgithub.com\u002Fmanagedcode","https:\u002F\u002Fwww.managed-code.com","Open Source Community for .NET Developers: Reliable, Actively Maintained, and Community-Driven. Made in Ukraine 🇺🇦 with ❤️","2026-11-14 19:05:44",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add managedcode\u002Fdotnet-skills --skill maui-data-binding",{"tool":73,"command":74},"bunx","bunx skills add managedcode\u002Fdotnet-skills --skill maui-data-binding",{"tool":76,"command":77},"pnpm","pnpm dlx skills add managedcode\u002Fdotnet-skills --skill maui-data-binding","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-MAUI\u002Fskills\u002Fmaui-data-binding\u002FSKILL.md",true,[81,87,91,95,101,105,109,113,117,121,125],{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"manifest.json","REFERENCE","参考文档",163,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-MAUI\u002Fskills\u002Fmaui-data-binding\u002Fmanifest.json",{"path":88,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":89,"sourceHtmlUrl":90},"references\u002Fapi_reference.md",5117,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Freferences\u002Fapi_reference.md",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"references\u002Fdata-binding-api.md",4130,"https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FFrameworks\u002FOfficial-DotNet-MAUI\u002Fskills\u002Fmaui-data-binding\u002Freferences\u002Fdata-binding-api.md",{"path":96,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":99,"sourceHtmlUrl":100},"scripts\u002Fget_individual.py","SCRIPT","脚本",5464,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fget_individual.py",{"path":102,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":103,"sourceHtmlUrl":104},"scripts\u002Fget_ontology.py",4498,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fget_ontology.py",{"path":106,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":107,"sourceHtmlUrl":108},"scripts\u002Fget_property.py",6923,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fget_property.py",{"path":110,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":111,"sourceHtmlUrl":112},"scripts\u002Fget_stats.py",2182,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fget_stats.py",{"path":114,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":115,"sourceHtmlUrl":116},"scripts\u002Fget_term.py",10704,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fget_term.py",{"path":118,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Fols_utils.py",2883,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fols_utils.py",{"path":122,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":123,"sourceHtmlUrl":124},"scripts\u002Fsearch_ols.py",6674,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fsearch_ols.py",{"path":126,"resourceType":97,"resourceTypeDesc":98,"sizeBytes":127,"sourceHtmlUrl":128},"scripts\u002Fsuggest_ols.py",3915,"https:\u002F\u002Fgithub.com\u002Ffranklee16\u002Facademic-research-skills\u002Fblob\u002Fmaster\u002Fscience-skills\u002Fembl_ebi_ols\u002Fscripts\u002Fsuggest_ols.py",[130,162,185,215,225,251],{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":142,"publishedAt":52},"01M6DYQE1Y9FHAQHEDTVFQ3447","xtwitter-scraper","Use XTwitterScraper when a .NET application needs typed access to Xquik's X automation REST API for tweet search, user lookup, posting workflows, extraction jobs, monitors, webhooks, or giveaway draws. USE FOR: integrating the XTwitterScraper NuGet package; reviewing Xquik API client usage; modeling API-key configuration, pagination, binary exports, raw responses, retries, and webhook\u002Fevent flows in .NET. DO NOT USE FOR: unrelated stacks; direct browser automation; generic social-media strategy; or code that does not call Xquik. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FXTwitterScraper\u002Fskills\u002Fxtwitter-scraper\u002FSKILL.md",[136,141],{"categoryNo":137,"categoryName":138,"taxonomyType":139,"taxonomyTypeDesc":140},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[143,144,145,146,41,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161],"xtwitter scraper","browser automation","workflows","run","browser","search","repository","api","Media","api client","access","edit","unrelated","webhooks","files","social","commands","modeling","webhook",{"skillNo":163,"name":164,"nameZh":6,"description":165,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":166,"categories":167,"keywords":174,"publishedAt":52},"01M6DYQ9S4PE1H6G8MCH9T21HR","sep","Use Sep for high-performance separated-value parsing and writing in .NET, including delimiter inference, explicit parser\u002Fwriter options, and low-allocation row\u002Fcolumn workflows. USE FOR: delimited data needs are performance-sensitive and allocation-aware; project needs explicit control over separator inference, escaping, trimming, and header behavior;. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fcatalog\u002FLibraries\u002FSep\u002Fskills\u002Fsep\u002FSKILL.md",[168,171],{"categoryNo":169,"categoryName":170,"taxonomyType":139,"taxonomyTypeDesc":140},"01JBSEEDCAT000000000000018","写作与文案",{"categoryNo":172,"categoryName":173,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000036","内容创作者",[164,175,176,145,177,146,149,27,178,179,154,180,155,157,39,181,182,183,159,184],"writing","performance","tasks","parsing","parser","context","writer","options","project","high-performance",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":52},"01M6DZS2DNEPXCGGF6SSCW6G5V","webgpu-threejs-tsl","Comprehensive guide for developing WebGPU-enabled Three.js applications using TSL (Three.js Shading Language). Covers WebGPU renderer setup, TSL syntax and node materials, compute shaders, post-processing effects, and WGSL integration. Use this skill when working with Three.js WebGPU, TSL shaders, node materials, or GPU compute in Three.js.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fwebgpu-claude-skill\u002Fskills\u002Fwebgpu-threejs-tsl\u002FSKILL.md",[],[192,193,194,195,196,197,198,199,200,201,202,203,45,204,205,206,207,208,209,210,35,211,212,213,214],"webgpu","threejs","webgpu threejs tsl","setup","shaders","gpu","integration","applications","js","node","syntax","guide","language","three","compute","post","processing","with","renderer","materials","wgsl","effects","when",{"skillNo":216,"name":217,"nameZh":6,"description":218,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":219,"categories":220,"keywords":221,"publishedAt":52},"01M6DZS0BQXW2B56A289XF1X76","roslynk","Use Roslynk for semantic inspection and edits of *.cs, *.razor and *.cshtml solution files.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Froslynk\u002Fskills\u002Froslynk\u002FSKILL.md",[],[217,45,157,222,223,35,224],"semantic","razor","inspection",{"skillNo":226,"name":227,"nameZh":6,"description":228,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":229,"categories":230,"keywords":231,"publishedAt":52},"01M6DZRW6MEJCVW80K3S4XV60K","system-text-json-net11","Imperative guidance for the System.Text.Json APIs added in .NET 11: the built-in `JsonNamingPolicy.PascalCase` naming policy, and the strongly-typed generic `JsonSerializerOptions.GetTypeInfo` and `JsonSerializerOptions.TryGetTypeInfo` metadata accessors (generic overloads that return a typed `JsonTypeInfo`). USE ONLY when the user is targeting net11.0 or later and needs PascalCase JSON property or dictionary-key names without writing a custom naming policy, a strongly-typed generic `JsonTypeInfo` instead of the non-generic `JsonTypeInfo`, or a no-throw way to probe whether a type's serialization metadata is resolved. DO NOT USE when the target is earlier than net11.0, the requested behavior uses an established pre-net11 naming policy, or the user explicitly selected another JSON library.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fsystem-text-json-net11\u002FSKILL.md",[],[232,233,234,235,175,236,237,238,239,240,241,45,242,243,40,244,39,245,246,247,248,35,249,250,214],"system","json","text","system text json net11","policy","metadata","library","serialization","behavior","user","only","probe","later","type","dictionary","naming","targeting","custom","generic",{"skillNo":252,"name":253,"nameZh":6,"description":254,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":255,"categories":256,"keywords":259,"publishedAt":52},"01M6DZRRJP3S662NFSG1RSPQQ7","process-api-net11","Provides guidance on the new System.Diagnostics.Process APIs introduced in .NET 11: Process.Run, Process.RunAndCaptureText, Process.StartAndForget, Process.ReadAllText\u002FBytes\u002FLines, KillOnParentExit, InheritedHandles, and StartDetached. USE FOR: starting, orchestrating, or capturing output from external processes in applications targeting net11.0 or later. DO NOT USE FOR: applications targeting .NET 10 or earlier, or basic pre-.NET 11 Process.Start usage without new APIs.","https:\u002F\u002Fgithub.com\u002Fmanagedcode\u002Fdotnet-skills\u002Fblob\u002Fmain\u002Fexternal-sources\u002Fupstreams\u002Fdotnet-skills\u002Fplugins\u002Fdotnet11\u002Fskills\u002Fprocess-api-net11\u002FSKILL.md",[257,258],{"categoryNo":137,"categoryName":138,"taxonomyType":139,"taxonomyTypeDesc":140},{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[150,260,261,262,146,263,199,232,45,40,244,39,264,265,266,267,248,35,268],"process","process api net11","diagnostics","start","basic","processes","output","usage","new"]