Base:
method
ProvideValue
System.Windows.Markup.MarkupExtension.ProvideValue(System.IServiceProvider)
1 override of ProvideValue
PresentationFramework (1)
MS\Internal\Markup\StaticExtension.cs (1)
44
public override object
ProvideValue
(IServiceProvider serviceProvider)
14 references to ProvideValue
PresentationFramework (4)
MS\Internal\Markup\StaticExtension.cs (1)
109
return base.
ProvideValue
(serviceProvider);
System\Windows\Markup\Baml2006\Baml2006Reader.cs (2)
895
providedValue = staticExtension.
ProvideValue
(null);
1676
param = staticExtension.
ProvideValue
(null); // if MemberType is set we don't need ITypeResolver
System\Windows\Markup\BamlRecordReader.cs (1)
2380
valueObject = se.
ProvideValue
(null);
System.Xaml.Tests (10)
System\Windows\Markup\StaticExtensionTests.cs (10)
46
Assert.Equal(expected, extension.
ProvideValue
(null));
64
Assert.Equal(expected, extension.
ProvideValue
(provider));
74
Assert.Equal(ConsoleColor.Red, extension.
ProvideValue
(null));
88
Assert.Equal(ConsoleColor.Red, extension.
ProvideValue
(provider));
95
Assert.Throws<InvalidOperationException>(() => extension.
ProvideValue
(null));
112
Assert.Throws<ArgumentException>(() => extension.
ProvideValue
(provider));
119
Assert.Throws<ArgumentNullException>("serviceProvider", () => extension.
ProvideValue
(null));
132
Assert.Throws<ArgumentException>(() => extension.
ProvideValue
(provider));
143
Assert.Throws<ArgumentException>(() => extension.
ProvideValue
(null));
165
Assert.Throws<ArgumentException>(() => extension.
ProvideValue
(provider));