object IValueProvider.ProvideValue(IServiceProvider serviceProvider) { ValueConverter = serviceProvider.GetService(typeof(IValueConverterProvider)) as IValueConverterProvider; ServiceProvider = serviceProvider; return this; }
object IValueProvider.ProvideValue(IServiceProvider serviceProvider) { ValueConverter = serviceProvider.GetService(typeof(IValueConverterProvider)) as IValueConverterProvider; ServiceProvider = serviceProvider; return(this); }
public void XamlServiceProviderIValueConverterProvider() { tlog.Debug(tag, $"XamlServiceProviderIValueConverterProvider START"); try { IValueConverterProvider i1 = x1.IValueConverterProvider; x1.IValueConverterProvider = i1; } catch (Exception e) { Tizen.Log.Error(tag, "Caught Exception" + e.ToString()); Assert.Fail("Caught Exception" + e.ToString()); } tlog.Debug(tag, $"XamlServiceProviderIValueConverterProvider END (OK)"); Assert.Pass("XamlServiceProviderIValueConverterProvider"); }
public ViewInflater(IVisualBootstrapper visualBootstrapper, IStringPrimitiveScanner xmlAttributeParser, ITypeInferrer typeInferrer, IBindingBuilder bindingBuilder, IValueConverterProvider converterProvider, IVisualTypeResolver visualTypeResolver, IPropertyProvider typeManipulator, IAppliedStyleBuilder appliedStyleBuilder) { _visualBootstrapper = visualBootstrapper; _typeInferrer = typeInferrer; _bindingBuilder = bindingBuilder; _converterProvider = converterProvider; _visualTypeResolver = visualTypeResolver; _typeManipulator = typeManipulator; _appliedStyleBuilder = appliedStyleBuilder; _attributeValueScanner = xmlAttributeParser; }