SimpleToolkit is a set of helpers, models, controls, etc. used in my other C# projects.
Project | NuGet Gallery |
---|---|
Extensions | |
Attributes | |
MVVM | |
UI.Models | |
UI.WinUI.Behaviors | |
UI.WinUI.Converters | |
UI.WinUI.Controls | |
UI.WinUI.Helpers |
- StringExtensions
- (static) CreateRandom - returns random string
- Shuffle - returns shuffled string
- HttpClientExtensions
- DownloadAsync - allows to track progress of downloading data
- StreamExtensions
- CopyToAsync - allows to track progress of copying data
- IEnumerableExtensions
- Random - returns random item from IEnumerable
- RequiresClaimAttribute - returns Forbidden result, when claim is not present
- ObservableKeyValuePair - Observable version of KeyValuePair
- ObservableDictionary - Observable version of Dictionary
- NavigationViewItem - model which can be used to implement NavigationViewService-less navigation in MVVM
- EventToCommandBehavior - allows to bind parametrized command to any event
- ObjectToIntConverter - converts any object to int (e.g. enums)
- ObjectToStringConverter - converts any object to string
- TimeSpanControl - allows to select TimeSpan
- WindowHelper
- ShowWindow - Brings window to the front