Comentsys.Toolkit 1.0.0

.NET Standard 2.0
dotnet add package Comentsys.Toolkit --version 1.0.0
NuGet\Install-Package Comentsys.Toolkit -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Comentsys.Toolkit" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Comentsys.Toolkit --version 1.0.0
#r "nuget: Comentsys.Toolkit, 1.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Comentsys.Toolkit as a Cake Addin
#addin nuget:?package=Comentsys.Toolkit&version=1.0.0

// Install Comentsys.Toolkit as a Cake Tool
#tool nuget:?package=Comentsys.Toolkit&version=1.0.0

Comentsys.Toolkit

Comentsys.Toolkit is a Toolkit for Binding and Asset Support for .NET Standard.

Change Log

Version 1.0.0

  • Initial Release

AssetBase

AssetBase can be used as the basis of an Asset Library that can be used in any .NET Standard Compatible Application.

AsStream(root, path, sources, targets, extension)

As Stream

Name Description
root System.String<br>Root
path System.String<br>Path
sources System.Drawing.Color[]?<br>Sources
targets System.Drawing.Color[]?<br>Targets
extension System.String<br>Extension
Returns

Resource Stream

AsStream(root, path, source, target, extension)

As Stream

Name Description
root System.String<br>Root
path System.String<br>Path
source System.Drawing.Color?<br>Source
target System.Drawing.Color?<br>Target
extension System.String<br>Extension
Returns

Resource Stream

AsStream(root, path, extension)

As Stream

Name Description
root System.String<br>Root
path System.String<br>Path
extension System.String<br>Extension
Returns

Resource Stream

AssetResource

AssetResource is used by an Asset Library an an Abstraction to represent the contents of an Asset which is usually in SVG format and exposes a Height and Width for correct representation by clients if needed.

Constructor

Constructor

Constructor(stream, height, width)

Constructor

Name Description
stream System.IO.Stream<br>Stream
height System.Int32<br>Height
width System.Int32<br>Width

Empty

Empty Asset Resource

Height

Asset Resource Height

Stream

Asset Resource Stream

Width

Asset Resource Width

ActionCommandHandler

ActionCommandHandler can be used with Data Binding and implements Interface for ICommand to support Commanding and supports Nullable.

Constructor(action, canExecute)

Constructor

Name Description
action System.Action{System.Object?}?<br>Action
canExecute System.Func{System.Object,System.Boolean?}?<br>Can Execute

Constructor(action)

Constructor

Name Description
action *ystem.Action{System.Object?}?<br>Action

CanExecute(parameter)

Can Execute

Name Description
parameter System.Object?<br>Parameter
Returns

True

CanExecuteChanged

Can Execute Changed

Execute(parameter)

Execute

Name Description
parameter System.Object?<br>Parameter

UpdateCanExecute

Update Can Execute

ActionCommandObservableBase

ActionCommandObservableBase is used in combination with the ActionCommandHandler to expose an Observable that supports Commanding.

Constructor(handler, isEnabled)

Constructor

Name Description
handler Comentsys.Toolkit.Binding.ActionCommandHandler<br>Action Command Handler
isEnabled System.Boolean<br>Is Enabled?

Command

Command

IsEnabled

Enabled

ObservableBase

ObservableBase provides the basis of an Observable by implmenting the Interface for INotifyPropertyChanged

OnPropertyChanged(propertyName)

On Property Changed

Name Description
propertyName System.String<br>Property Name

PropertyChanged

Property Changed Event Handler

Licence

The MIT License (MIT)

Copyright (c) 2022 Comentsys

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48 net481
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • No dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on Comentsys.Toolkit:

Package Downloads
Comentsys.Toolkit.WindowsAppSdk

Windows App SDK Toolkit for Controls, Converters and Extensions

Comentsys.Assets.FluentEmoji

Asset Resource for Flat Fluent Emoji

Comentsys.Assets.Games

Asset Resource for Games including Chess and Mahjong

Comentsys.Assets.Flags

Asset Resource for Rectangular and Square Country Flags

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 271 9/25/2022

1.0.0 - Initial Release