Class XamlObjectServiceProvider
- Namespace
- Alternet.FormDesigner.Wpf.XamlDom
- Assembly
- Alternet.FormDesigner.Wpf.v10.dll
A service provider that provides the IProvideValueTarget and IXamlTypeResolver services. No other services (e.g. from the document's service provider) are offered.
public class XamlObjectServiceProvider : IServiceProvider, IXamlNameResolver, IProvideValueTarget, IXamlSchemaContextProvider, IAmbientProvider, IUriContext
- Inheritance
-
XamlObjectServiceProvider
- Implements
- Extension Methods
Constructors
- XamlObjectServiceProvider(XamlObject)
Creates a new XamlObjectServiceProvider instance.
Properties
- BaseUri
Gets or sets the base URI of the current application context.
- IsFixupTokenAvailable
Gets a value that determines whether calling GetFixupToken(IEnumerable<string>, bool) is available in order to resolve a name into a token for forward resolution.
- SchemaContext
Gets the XamlSchemaContext that is reported by the service context.
- TargetObject
Gets the target object (the DependencyObject instance on which a property should be set)
- TargetProperty
Gets the target dependency property.
- XamlObject
Gets the XamlObject that owns this service provider (e.g. the XamlObject that represents a markup extension).
Methods
- GetAllAmbientValues(IEnumerable<XamlType>, bool, IEnumerable<XamlType>, params XamlMember[])
Returns an enumerable set of ambient property information items for the requested set of types and properties.
- GetAllAmbientValues(IEnumerable<XamlType>, params XamlMember[])
Returns an enumerable set of ambient property information items for the requested set of properties.
- GetAllAmbientValues(params XamlType[])
Returns an enumerable set of object instances of possible ambient types for the requested types.
- GetAllNamesAndValuesInScope()
Returns an enumerable set of all named objects in the XAML namescope.
- GetFirstAmbientValue(IEnumerable<XamlType>, params XamlMember[])
Returns a single ambient property information item from the requested set of properties, based on which property is first encountered.
- GetFirstAmbientValue(params XamlType[])
Returns the first matching object that is a possible ambient type for the requested types.
- GetFixupToken(IEnumerable<string>)
Returns an object that can correct for certain markup patterns that produce forward references.
- GetFixupToken(IEnumerable<string>, bool)
Returns an object that can correct for certain markup patterns that produce forward references.
- GetService(Type)
Retrieves the service of the specified type.
- Resolve(string)
Resolves an object from a name reference.
- Resolve(string, out bool)
Resolves an object from a name reference, and provides a tracking value that reports whether the object is fully initialized for object graph purposes.
Events
- OnNameScopeInitializationComplete
Occurs when a XAML processor has registered all the relevant names to the backing XAML namescope.