-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
IXamlSchemaContextProvider.xml
73 lines (67 loc) · 5.43 KB
/
IXamlSchemaContextProvider.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<Type Name="IXamlSchemaContextProvider" FullName="System.Xaml.IXamlSchemaContextProvider">
<TypeSignature Language="C#" Value="public interface IXamlSchemaContextProvider" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract IXamlSchemaContextProvider" FrameworkAlternate="netframework-4.0;netframework-4.5;netframework-4.5.1;netframework-4.5.2;netframework-4.6;netframework-4.6.1;netframework-4.6.2;netframework-4.7;netframework-4.7.1;netframework-4.7.2;netframework-4.8;netframework-4.8.1;windowsdesktop-3.0;windowsdesktop-3.1;windowsdesktop-5.0;windowsdesktop-6.0;windowsdesktop-7.0" />
<TypeSignature Language="DocId" Value="T:System.Xaml.IXamlSchemaContextProvider" />
<TypeSignature Language="VB.NET" Value="Public Interface IXamlSchemaContextProvider" />
<TypeSignature Language="F#" Value="type IXamlSchemaContextProvider = interface" />
<TypeSignature Language="C++ CLI" Value="public interface class IXamlSchemaContextProvider" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit IXamlSchemaContextProvider" FrameworkAlternate="windowsdesktop-8.0;windowsdesktop-9.0" />
<AssemblyInfo>
<AssemblyName>System.Xaml</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces />
<Docs>
<summary>Represents a service that provides XAML schema context information to type converters and markup extensions.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Xaml.IXamlSchemaContextProvider> service provides one property, <xref:System.Xaml.IXamlSchemaContextProvider.SchemaContext%2A>.
Use the <xref:System.Xaml.IXamlSchemaContextProvider> service and its <xref:System.Xaml.IXamlSchemaContextProvider.SchemaContext%2A> property when you need the active XAML schema context from a markup extension or type converter implementation. Many XAML-related operations, most notably resolving a XAML type into its backing type for object graph creation, rely on having an available XAML schema context. However, for many scenarios, you can use the XAML schema context that is provided by a particular framework. Or you can use the default XAML schema context provided by .NET Framework XAML Services, which uses CLR and reflection backing and can provide the necessary XAML schema context for any CLR-defined type.
The <xref:System.Xaml.IXamlSchemaContextProvider> service is mainly relevant for implementations that anticipate that their value converter implementation might be called when it is supported by custom XAML schema contexts. You can get the service from the entry-point parameters of the virtual methods of <xref:System.ComponentModel.TypeConverter> or <xref:System.Windows.Markup.MarkupExtension> that report service context. Or you can instead get the schema context directly from dedicated properties of specific XAML readers or XAML writers.
]]></format>
</remarks>
<related type="Article" href="/dotnet/desktop-wpf/xaml-services/type-converters-and-markup-extensions">Type Converters and Markup Extensions for XAML</related>
</Docs>
<Members>
<Member MemberName="SchemaContext">
<MemberSignature Language="C#" Value="public System.Xaml.XamlSchemaContext SchemaContext { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Xaml.XamlSchemaContext SchemaContext" />
<MemberSignature Language="DocId" Value="P:System.Xaml.IXamlSchemaContextProvider.SchemaContext" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property SchemaContext As XamlSchemaContext" />
<MemberSignature Language="F#" Value="member this.SchemaContext : System.Xaml.XamlSchemaContext" Usage="System.Xaml.IXamlSchemaContextProvider.SchemaContext" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Xaml::XamlSchemaContext ^ SchemaContext { System::Xaml::XamlSchemaContext ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Xaml</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
<AssemblyVersion>5.0.0.0</AssemblyVersion>
<AssemblyVersion>6.0.0.0</AssemblyVersion>
<AssemblyVersion>7.0.0.0</AssemblyVersion>
<AssemblyVersion>8.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Xaml.XamlSchemaContext</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets the <see cref="T:System.Xaml.XamlSchemaContext" /> that is reported by the service context.</summary>
<value>The XAML schema context that is reported by the service context.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Use the returned <xref:System.Xaml.XamlSchemaContext> for operations such as obtaining lists of all the types in an assembly or for obtaining specifics about assembly mapping.
]]></format>
</remarks>
<altmember cref="T:System.Xaml.XamlSchemaContext" />
<altmember cref="P:System.Xaml.XamlObjectWriter.SchemaContext" />
<altmember cref="P:System.Xaml.XamlXmlReader.SchemaContext" />
</Docs>
</Member>
</Members>
</Type>