dotnet
dotnet copied to clipboard
.NET Community Toolkit is a collection of helpers and APIs that work for all .NET developers and are agnostic of any specific UI platform. The toolkit is maintained and published by Microsoft, and par...
### Overview Whilst upgrading from `CommunityToolkit.Common.Collections` to `CommunityToolkit.Mvvm`, I noticed that a lot of (linq e.a.) extensions on ObservableGroupedCollection and derived classes I am using in my code are no...
### Describe the bug Error > CS0121 The call is ambiguous between the following methods or properties: 'System.MemoryExtensions.Count(System.ReadOnlySpan, T)' and 'CommunityToolkit.HighPerformance.ReadOnlySpanExtensions.Count(System.ReadOnlySpan, T)' after changing the TargetFramework to `net8.0`. ### Regression...
### Describe the bug When using the annotations `[ObservableObject]` and `[ObservableProperty]` in a `class`, it correctly generates (at least) two files. One containing the property which when set calls the...
### Overview Today, [.NET does not support array dimensions larger than 0x7FFFFFC7](https://github.com/dotnet/runtime/issues/12221). However, it is possible to implement a `LargeArray` type by increasing the size of the array element (for...
I would like to contribute an update to the ObservableProperty attribute that would allow the user to specify the resulting property name. This would involve adding a string property, SpecifiedPropertyName,...
### Describe the bug I noticed that if my VM is part of an inheritance hierarchy the validation doesn't work. E.g. I have this structure: ChildVM: BaseVM BaseVM: ObservableObject In...
### Describe the bug Documentation of `ObservableRecipient.Broadcast` indicate that Broadcast(...) should be overridden in order to use a custom channel (token). If we need to use the features of `ObservableValidator`...
### Overview We already have the `[NotifyDataErrorInfo]` attribute, which adds source generation to validate this property. But since we can use custom validation methods to perform multi-property validation, we should...
### Overview The problem I would like to solve is: Don't change a value when it fails validation but instead invoke the ErrorsChanged event, all of this just with attributes...
### Describe the bug I have an Attribute, which constructor looks like this: ```csharp [AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)] public class CrossValidateAttribute : ValidationAttribute { public...