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 Hi, I'm migrating some old C# ViewModel code to use the [ObservableProperty] attribute on all the properties. I'd like to convert the following code: ```csharp private string _windowTitle;...
### Overview A command is a syntactic sugar for methods defined in the ViewModel. It is made available as a property to enable binding. As the ViewModel can inherit, so...
### Overview I wonder if this has been considered before, we often have complex POCO entity graphs which we want to reuse in our XAML app. It would be so...
### Describe the bug I'm developing a WinUI application with Community Toolkit MVVM 8.4.0. I switched the properties in my application to use the new format. Here's one example: ```...
### Describe the bug The inheritdoc xml documentation tag is designed for derived members. Partial properties are not derived members, they are implementations. By including this tag on partial properties,...
### Overview I’m using the MVVM Community Toolkit to keep a ViewModel synchronized with a Model, handling both properties and collections. The `[ObservableProperty]` attribute already simplifies `INotifyPropertyChanged` implementation, but bidirectional...
### Describe the bug RelayCommand generates code that violates [CA1708](https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1708) ``` private global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand? editCommand; public global::CommunityToolkit.Mvvm.Input.IAsyncRelayCommand EditCommand => editCommand ??= new global::CommunityToolkit.Mvvm.Input.AsyncRelayCommand(new global::System.Func(EditAsync), CanEdit); ``` but should be: ``` private...
### Describe the bug The ExecutionTask and IsRunning of the AsyncRelayCommand is only set after the execute returns a Task, so on the first real async function. As long as...
### Overview The `System.Buffers.ArrayBufferWriter` class has a `ResetWrittenCount` method, which resets the write position to zero without clearing the buffer, thus allowing a writer to be reused without clearing the...
### Describe the bug Using `ObservableValidator` in a .NET Framework application plugin leads to `System.IO.FileNotFoundException`: Could not load file or assembly 'System.ComponentModel.Annotations, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies....