KsWare.Presentation.Interfaces
Interfaces for KsWare Presentation Framework
Master | Develop | Kux | |
---|---|---|---|
Build | |||
Test | |||
Nuget |
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();
}
}