CommonHelpers 1.0.4

A small library to help build demos. This saves time by preventing the need to rewrite the same code several times a day.

There is a newer version of this package available.
See the version list below for details.
Install-Package CommonHelpers -Version 1.0.4
dotnet add package CommonHelpers --version 1.0.4
<PackageReference Include="CommonHelpers" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CommonHelpers --version 1.0.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

CommonHelpers

This is a small NET Standard 2.0 helper library to reuse code that I write several times a day in demo projects.

Nuget: CommonHelpers on NuGet

Highlights

Collections

Special collection types (e.g. ObservableQueue and ObservableRangeCollection)

Common

This folder has the frequently used base classe (i.e. BindableBase, ViewModelBase, JsonHelper).

Models

Common sample data model classes used to populate UI elements (Charts, ListViews, DataGrid, etc).

Extensions

Extensions for commonly used objects like string, DateTime, enum. There are also some special extensions for File, Exception and Color. Finally, there's a unqiue helper, HttpClientExtensions which provides download progress and helper method to POST image data.

MVVM

Platform agnostic MVVM classes like DelegateCommand and RelayCommand

Services

To make testing UI controls with real-life API calls easier, I've added a few of my commonly used web endpoints (e.g. XkcdApiService). Most do not require an API key, just new up the service class and go. This is really useful for testing Load On Demand scenarios.

Example: BingImageService:

using (var bingImageService = new BingImageService())
{
    var result = await bingImageService.GetBingImageOfTheDayAsync();
    image.Source = new UriImageSource{Uri = result};
}

image

CommonHelpers

This is a small NET Standard 2.0 helper library to reuse code that I write several times a day in demo projects.

Nuget: CommonHelpers on NuGet

Highlights

Collections

Special collection types (e.g. ObservableQueue and ObservableRangeCollection)

Common

This folder has the frequently used base classe (i.e. BindableBase, ViewModelBase, JsonHelper).

Models

Common sample data model classes used to populate UI elements (Charts, ListViews, DataGrid, etc).

Extensions

Extensions for commonly used objects like string, DateTime, enum. There are also some special extensions for File, Exception and Color. Finally, there's a unqiue helper, HttpClientExtensions which provides download progress and helper method to POST image data.

MVVM

Platform agnostic MVVM classes like DelegateCommand and RelayCommand

Services

To make testing UI controls with real-life API calls easier, I've added a few of my commonly used web endpoints (e.g. XkcdApiService). Most do not require an API key, just new up the service class and go. This is really useful for testing Load On Demand scenarios.

Example: BingImageService:

using (var bingImageService = new BingImageService())
{
    var result = await bingImageService.GetBingImageOfTheDayAsync();
    image.Source = new UriImageSource{Uri = result};
}

image

Release Notes

Fleshing out the library. Added more helper, extensions and service classes.

  • .NETStandard 2.0

    • No dependencies.

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.12 470 4/29/2019
1.0.11 217 4/21/2019
1.0.9 163 4/12/2019
1.0.8 350 11/17/2018
1.0.7 352 6/27/2018
1.0.6 260 6/21/2018
1.0.5 248 6/19/2018
1.0.4 258 6/19/2018
1.0.0 256 6/18/2018
Show less