Skip to content

SimpleToolkit is a set of helpers, models, controls, etc. used in my other C# projects.

License

Notifications You must be signed in to change notification settings

mateuszskoczek/SimpleToolkit

Repository files navigation

SimpleToolkit

SimpleToolkit is a set of helpers, models, controls, etc. used in my other C# projects.

Status

Project NuGet Gallery
Extensions NuGet version (SimpleToolkit.Extensions)
Attributes NuGet version (SimpleToolkit.Attributes)
MVVM NuGet version (SimpleToolkit.MVVM)
UI.Models NuGet version (SimpleToolkit.UI.Models)
UI.WinUI.Behaviors NuGet version (SimpleToolkit.UI.WinUI.Behaviors)
UI.WinUI.Converters NuGet version (SimpleToolkit.UI.WinUI.Converters)
UI.WinUI.Controls NuGet version (SimpleToolkit.UI.WinUI.Controls)
UI.WinUI.Helpers NuGet version (SimpleToolkit.UI.WinUI.Helpers)

Contents

Extensions

  • 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

Attributes

  • RequiresClaimAttribute - returns Forbidden result, when claim is not present

MVVM

  • ObservableKeyValuePair - Observable version of KeyValuePair
  • ObservableDictionary - Observable version of Dictionary

UI.Models

  • NavigationViewItem - model which can be used to implement NavigationViewService-less navigation in MVVM

UI.WinUI.Behaviors

  • EventToCommandBehavior - allows to bind parametrized command to any event

UI.WinUI.Converters

  • ObjectToIntConverter - converts any object to int (e.g. enums)
  • ObjectToStringConverter - converts any object to string

UI.WinUI.Controls

  • TimeSpanControl - allows to select TimeSpan

UI.WinUI.Helpers

  • WindowHelper
    • ShowWindow - Brings window to the front

alt text