Exemple #1
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            DebugHelper.AssertUIThread();

            object value = null;

            Binding binding = new Binding("Value");
            BinaryMetadataConverter instanceConverter = new BinaryMetadataConverter(this.structType, this.path, this.converter, this.converterParameter);

            MultiBinding multiBinding = new MultiBinding()
            {
                Converter = instanceConverter,
                Mode      = this.BindingMode,
            };

            multiBinding.Bindings.Add(binding);

            value = multiBinding.ProvideValue(serviceProvider);

            return(value);
        }
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            DebugHelper.AssertUIThread();

            object value = null;

            Binding binding = new Binding("Value");
            BinaryMetadataConverter instanceConverter = new BinaryMetadataConverter(this.structType, this.path, this.converter, this.converterParameter);

            MultiBinding multiBinding = new MultiBinding()
                {
                    Converter = instanceConverter,
                    Mode = this.BindingMode,
                };
            multiBinding.Bindings.Add(binding);

            value = multiBinding.ProvideValue(serviceProvider);

            return value;
        }