/// <summary>
 /// Register this instance with <see cref="ValueConverterConventionRegistry"/>
 /// </summary>
 public void RegisterConvention()
 {
     ValueConverterConventionRegistry.RegisterConvention(this, Image.SourceProperty, typeof(string));
 }
Esempio n. 2
0
 /// <summary>
 ///   Adds the stock <see cref="ValueConverterConvention" />s to the
 ///   <see cref="ValueConverterConventionRegistry" /> and thus to the
 ///   Caliburn <see cref="ConventionManager" />.
 /// </summary>
 protected virtual void AddValueConverterConventions()
 {
     ValueConverterConventionRegistry.AddConventionsToConventionManager();
     new PathToImageSourceConverter().RegisterConvention();
     new BinaryToImageSourceConverter().RegisterConvention();
 }