Esempio n. 1
0
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            var b = new Binding
            {
                Converter          = Converter,
                ConverterParameter = ConverterParameter,
                ElementName        = ElementName,
                FallbackValue      = FallbackValue,
                Mode           = Mode,
                Path           = Path,
                Priority       = Priority,
                RelativeSource = RelativeSource
            };

            return(XamlBinding.FromMarkupExtensionContext(b, serviceProvider));
        }
Esempio n. 2
0
 public override object ProvideValue(IServiceProvider serviceProvider)
 {
     return(XamlBinding.FromMarkupExtensionContext(
                new StyleResourceBinding(Name),
                serviceProvider));
 }