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 ## Context I'm using Avalonia UI for a simple project where the MainWindow opens a dialog window. When the dialog closes, I want to get back the dialog...
--- **Issue moved from dotnet/maui#14355** - Please respond to @needledrag. --- _From @needledrag on Sunday, April 2, 2023 1:48:40 PM_ ### Description When using WeakReferenceMessenger to publish messages, subscribers in...
### Overview Assume a developer wants to call `Execute` on an `ICommand` from within another view model. Sure, bad practice but it's something that could happen in a larger project....
The text below is copied from [my repository](https://github.com/nicolaihenriksen/CommunityToolkit.DependencyInjection) README.md where I have built a proof-of-concept implementation of this feature. --- The problem described below is probably the most compelling use...
### Describe the bug ```cs public partial class MainViewModel : ObservableObject { [ObservableProperty] public string _title = "Window Name"; [ObservableProperty] public string _buttonCaption = "This is a button"; [RelayCommand(CanExecute =...
### Overview `Guard` provides `IsNotEmpty` overloads for many collection types. It should also provide `IsNotNullOrEmpty` overloads. ### API breakdown ```cs public static class Guard { public static void IsNotNullOrEmpty(ICollection collection,...
### Describe the bug Declaring an observable property with a source-generated type fails at compile-time. Source generators should have access to other source-generated code. ### Steps to reproduce ```text 1....
### Describe the bug When applied to record (class) types, the `[INotifyPropertyChanged]` attribute has no effect. ### Regression _No response_ ### Steps to reproduce ```cs [INotifyPropertyChanged] partial record Record() {...
### Overview When dealing with 3 dimensional data (like for example in 3D games), you sometimes need to store the data in an array. CommunityToolkit.HighPerformance should thus offer 3D Span...
### Overview Somes read-only properties may dependes on other to be validated, when the source property change, we shall be able to trigger validation in to a target property that...