Skip to content

Commit c275392

Browse files
committed
Update Docs
1 parent 26fd9a9 commit c275392

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ReactiveUI Source Generators automatically generate ReactiveUI objects to stream
2424
- `[IViewFor(nameof(ViewModelName))]`
2525
- `[RoutedControlHost("YourNameSpace.CustomControl")]`
2626
- `[ViewModelControlHost("YourNameSpace.CustomControl")]`
27+
- `[BindableDerivedList]` Generates a derived list from a ReadOnlyObservableCollection backing field
2728

2829
### Compatibility Notes
2930
- For ReactiveUI versions **older than V19.5.31**, all `[ReactiveCommand]` options are supported except for async methods with a `CancellationToken`.
@@ -521,6 +522,18 @@ public partial class MyReactiveControl : UserControl
521522
}
522523
```
523524

525+
### Usage ReadOnlyObservableCollection
526+
527+
```csharp
528+
using ReactiveUI.SourceGenerators;
529+
530+
public partial class MyReactiveClass
531+
{
532+
[BindableDerivedList]
533+
private readonly ReadOnlyObservableCollection<string> _myList;
534+
}
535+
```
536+
524537
## Platform specific Attributes
525538

526539
### WinForms

0 commit comments

Comments
 (0)