KsWare.Presentation.Interfaces

Interfaces for KsWare Presentation Framework. Supports .Net 5.0/6.0, Core 3.1 and .Net 4.7.2


Keywords
resource, converter, plugin, Interfaces, KsWare, Presentation, Framework
License
LGPL-3.0-only
Install
Install-Package KsWare.Presentation.Interfaces -Version 0.4.0

Documentation

KsWare.Presentation.Interfaces

Interfaces for KsWare Presentation Framework

Master Develop Kux
Build Build status Build status Build status
Test AppVeyor tests (branch) AppVeyor tests (branch) AppVeyor tests (branch)
Nuget NuGet Badge

IResourceConverterPlugin

The Plugin interface. Derives from IValueConverter, so the implementation is the same. TargetType must support DataTemplate/ControlTemplate and UIEement(and derived)

[Export(typeof(IResourceConverterPlugin))]
[ResourceConverterPluginExportMetadata("text/html")]
public class MyPlugin : IResourceConverterPlugin {

	public object Convert(object value, Type targetType, object parameter, CultureInfo culture) {
		// ...
	}

	public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) {
		throw new NotImplementedException();
	}

}