16 types derived from MarkupExtension
Microsoft.VisualStudio.LanguageServices (1)
DocumentOutline\DocumentSymbolDataViewModelSorter.cs (1)
18internal sealed class DocumentSymbolDataViewModelSorter : MarkupExtension, IMultiValueConverter
PresentationFramework (10)
System\Windows\ColorConvertedBitmapExtension.cs (1)
30public class ColorConvertedBitmapExtension : MarkupExtension
System\Windows\Data\BindingBase.cs (1)
60public abstract class BindingBase: MarkupExtension
System\Windows\Data\RelativeSource.cs (1)
46public class RelativeSource : MarkupExtension, ISupportInitialize
System\Windows\DynamicResourceExtension.cs (1)
27public class DynamicResourceExtension : MarkupExtension
System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
17internal class DeferredBinaryDeserializerExtension : MarkupExtension
System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
11internal class TypeConverterMarkupExtension : System.Windows.Markup.MarkupExtension
System\Windows\ResourceKey.cs (1)
23public abstract class ResourceKey : MarkupExtension
System\Windows\StaticResourceExtension.cs (1)
31public class StaticResourceExtension : MarkupExtension
System\Windows\TemplateBindingExtension.cs (1)
27public class TemplateBindingExtension : MarkupExtension
System\Windows\ThemeDictionaryExtension.cs (1)
24public class ThemeDictionaryExtension : MarkupExtension
System.Xaml (5)
System\Windows\Markup\ArrayExtension.cs (1)
19public class ArrayExtension : MarkupExtension
System\Windows\Markup\NullExtension.cs (1)
16public class NullExtension : MarkupExtension
System\Windows\Markup\Reference.cs (1)
12public class Reference : MarkupExtension
System\Windows\Markup\StaticExtension.cs (1)
19public class StaticExtension : MarkupExtension
System\Windows\Markup\TypeExtension.cs (1)
18public class TypeExtension : MarkupExtension
100 references to MarkupExtension
PresentationFramework (68)
MS\Internal\Helper.cs (2)
572MarkupExtension markupExtension, 674if (!typeof(MarkupExtension).IsAssignableFrom(memberType) ||
System\Windows\Condition.cs (1)
138if (value is MarkupExtension)
System\Windows\DataTrigger.cs (1)
78if (value is MarkupExtension)
System\Windows\FrameworkElementFactory.cs (3)
219if (!dp.IsValidValue(value) && !(value is MarkupExtension) && !(value is DeferredReference)) 835MarkupExtension me = o as MarkupExtension;
System\Windows\FrameworkTemplate.cs (3)
843bool isMarkupExtension = value is MarkupExtension; 1288MarkupExtension me = value as MarkupExtension;
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
477case 381: t = () => typeof(MarkupExtension); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
6548typeof(System.Windows.Markup.MarkupExtension),
System\Windows\Markup\BamlRecordReader.cs (18)
862typeof(MarkupExtension).IsAssignableFrom(elementType)) 970internal object ProvideValueFromMarkupExtension(MarkupExtension markupExtension, object obj, object member) 1274object key = ProvideValueFromMarkupExtension((MarkupExtension)GetCurrentObjectData(), 1599MarkupExtension me = param as MarkupExtension; 1776MarkupExtension me = keyObject as MarkupExtension; 2472MarkupExtension me = value as MarkupExtension; 3672MarkupExtension me = o as MarkupExtension; 3785if ((o != null) && IsNullable(propertyType) && !(o is Expression) && !(o is MarkupExtension) ) 3814MarkupExtension me = value as MarkupExtension; 3902MarkupExtension me = o as MarkupExtension; 4834MarkupExtension me = element as MarkupExtension;
System\Windows\Markup\KnownTypes.cs (1)
5935case KnownElements.MarkupExtension: t = typeof(System.Windows.Markup.MarkupExtension); break;
System\Windows\Markup\Primitives\ElementMarkupObject.cs (7)
86if (mapToConstructorArgs && _instance is MarkupExtension) 447else if (value is MarkupExtension) 817converter.CanConvertTo(typeof(MarkupExtension))) 819value = converter.ConvertTo(expression, typeof(MarkupExtension)); 861if( !(value is MarkupExtension) && !CanConvertToString(value) ) 913if (converter.CanConvertTo(context, typeof(MarkupExtension))) 916return converter.ConvertTo(context, TypeConverterHelper.InvariantEnglishUS, value, typeof(MarkupExtension));
System\Windows\Markup\Primitives\ExtensionSimplifierMarkupObject.cs (1)
240!typeof(MarkupExtension).IsAssignableFrom(item.ObjectType))
System\Windows\Markup\Primitives\MarkupWriter.cs (4)
476if (typeof(MarkupExtension).IsAssignableFrom(item.ObjectType) && 914!(property.Value is MarkupExtension) && 1003if (instance is MarkupExtension) 1044if (typeof(MarkupExtension).IsAssignableFrom(tagType) &&
System\Windows\ResourceDictionary.cs (2)
1160MarkupExtension me = value as MarkupExtension;
System\Windows\ResourceReferenceExpressionConverter.cs (2)
72if (destinationType == typeof(MarkupExtension)) 127if (destinationType == typeof(MarkupExtension))
System\Windows\Setter.cs (2)
119if (value is MarkupExtension) 240MarkupExtension me = eventArgs.MarkupExtension;
System\Windows\StyleHelper.cs (11)
674MarkupExtension markupExtension = null; 682if (typeof(MarkupExtension).IsAssignableFrom(valueType)) 685if ((markupExtension = value as MarkupExtension) == null) 697else if ((markupExtension = value as MarkupExtension) == null) 1591if (o is MarkupExtension) 2312if (entry.Value is MarkupExtension) 2815MarkupExtension me; 2818if ((me = value as MarkupExtension) != null) 2950MarkupExtension me; 2953if ((me = rawValue as MarkupExtension) != null) 3816if (value is MarkupExtension)
System\Windows\SystemKeyConverter.cs (2)
64if ( destinationType == typeof(MarkupExtension) && context is IValueSerializerContext ) 117if (destinationType == typeof(MarkupExtension)
System\Windows\TemplateBindingExpressionConverter.cs (2)
33if (destinationType == typeof(MarkupExtension)) 45if (destinationType == typeof(MarkupExtension))
System\Windows\TemplateContent.cs (3)
1111else if (value is MarkupExtension) 1127value = (value as MarkupExtension).ProvideValue(TemplateLoadData.ServiceProviderWrapper); 1172(typeof(MarkupExtension).IsAssignableFrom(type)
System\Windows\Trigger.cs (1)
84if (value is MarkupExtension)
System.Windows.Controls.Ribbon (3)
Microsoft\Windows\Controls\Ribbon\RibbonHelper.cs (3)
1582DynamicResourceExtension dynamicResource = _rreConverter.ConvertTo(expr, typeof(MarkupExtension)) as DynamicResourceExtension; 2300MarkupExtension markupExtension = markupProp.Value as MarkupExtension;
System.Xaml (28)
System\Windows\Markup\XamlSetMarkupExtensionEventArgs.cs (4)
14MarkupExtension value, IServiceProvider serviceProvider) : 20public MarkupExtension MarkupExtension => Value as MarkupExtension; 24MarkupExtension value, IServiceProvider serviceProvider, object targetObject)
System\Xaml\Context\ObjectWriterContext.cs (1)
370if (!(lowerFrame.Instance is XAML3.MarkupExtension))
System\Xaml\InfosetObjects\XamlObjectWriter.cs (13)
757XAML3.MarkupExtension me = value as XAML3.MarkupExtension; 1128XAML3.MarkupExtension me = args[i] as XAML3.MarkupExtension; 1188if (ctx.LiveDepth > 1 && !(inst is XAML3.MarkupExtension)) 1527XAML3.MarkupExtension me = value as XAML3.MarkupExtension; 1540private object Logic_PushAndPopAProvideValueStackFrame(ObjectWriterContext ctx, XamlMember prop, XAML3.MarkupExtension me, bool useIRME) 1651XAML3.MarkupExtension me = (XAML3.MarkupExtension)inst; 1766XAML3.MarkupExtension me = value as XAML3.MarkupExtension; 2474value = Runtime.CallProvideValue((XAML3.MarkupExtension)owc.CurrentInstance, owc.ServiceProviderContext);
System\Xaml\RefOnly\LooseTypeExtensions.cs (2)
55if (name1.Name == WindowsBase && a2 == typeof(MarkupExtension).Assembly) 59else if (name2.Name == WindowsBase && a1 == typeof(MarkupExtension).Assembly)
System\Xaml\Runtime\ClrObjectRuntime.cs (1)
486public override object CallProvideValue(XAML3.MarkupExtension me, IServiceProvider serviceProvider)
System\Xaml\Runtime\PartialTrustTolerantRuntime.cs (1)
73public override object CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
System\Xaml\XamlLanguage.cs (2)
95new Lazy<XamlType>(() => GetXamlType(typeof(MarkupExtension))); 428{ typeof(XamlLanguage).Assembly, typeof(MarkupExtension).Assembly };
System\Xaml\XamlObjectReader.cs (3)
1356else if ((converter != null && context.TryConvertToMarkupExtension(converter, ref meObject)) || meObject is MarkupExtension) 2717if (!Runtime.CanConvertTo(TypeDescriptorContext, converter, typeof(MarkupExtension))) { return false; } 2719value = ConvertTo<MarkupExtension>(converter, value);
System\Xaml\XamlRuntime.cs (1)
81abstract public object CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider);
System.Xaml.Tests (1)
System\Windows\Markup\XamlSetMarkupExtensionEventArgsTests.cs (1)
21public void Ctor_XamlMember_MarkupExtension_IServiceProvider(XamlMember member, MarkupExtension value, IServiceProvider serviceProvider)