Esempio n. 1
0
		object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
		{
			ValueConverter = serviceProvider.GetService(typeof(IValueConverterProvider)) as IValueConverterProvider;
			ServiceProvider = serviceProvider;

			return this;
		}
Esempio n. 2
0
        object IValueProvider.ProvideValue(IServiceProvider serviceProvider)
        {
            ValueConverter  = serviceProvider.GetService(typeof(IValueConverterProvider)) as IValueConverterProvider;
            ServiceProvider = serviceProvider;

            return(this);
        }
Esempio n. 3
0
        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");
        }
Esempio n. 4
0
 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;
 }