-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
BlockUIContainer.xml
182 lines (159 loc) · 10.6 KB
/
BlockUIContainer.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<Type Name="BlockUIContainer" FullName="System.Windows.Documents.BlockUIContainer">
<TypeSignature Language="C#" Value="public class BlockUIContainer : System.Windows.Documents.Block" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit BlockUIContainer extends System.Windows.Documents.Block" />
<TypeSignature Language="DocId" Value="T:System.Windows.Documents.BlockUIContainer" />
<TypeSignature Language="VB.NET" Value="Public Class BlockUIContainer
Inherits Block" />
<TypeSignature Language="F#" Value="type BlockUIContainer = class
 inherit Block" />
<TypeSignature Language="C++ CLI" Value="public ref class BlockUIContainer : System::Windows::Documents::Block" />
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<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>
<Base>
<BaseTypeName>System.Windows.Documents.Block</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Windows.Markup.ContentProperty("Child")]</AttributeName>
<AttributeName Language="F#">[<System.Windows.Markup.ContentProperty("Child")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>A block-level flow content element which enables <see cref="T:System.Windows.UIElement" /> elements (i.e. a <see cref="T:System.Windows.Controls.Button" />) to be embedded (hosted) in flow content.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
A <xref:System.Windows.UIElement> element (i.e. a <xref:System.Windows.Controls.Button>) may be embedded directly in flow content by enclosing it in a <xref:System.Windows.Documents.BlockUIContainer> (see example below).
An <xref:System.Windows.Documents.BlockUIContainer> may directly host no more than one <xref:System.Windows.UIElement> child. However, the child element hosted by an <xref:System.Windows.Documents.BlockUIContainer> may host children of its own.
## Examples
The following example shows how to use the <xref:System.Windows.Documents.BlockUIContainer> elements to host <xref:System.Windows.UIElement> elements within flow content.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/TextBlock/Text/Window1.xaml" id="Snippet_blockuixaml":::
The following figure shows how this example renders.
![Screenshot: UIElement embedded in flow content](~/add/media/blockuicontainer.png "Screenshot: UIElement embedded in flow content")
]]></format>
</remarks>
<altmember cref="T:System.Windows.Documents.InlineUIContainer" />
</Docs>
<Members>
<MemberGroup MemberName=".ctor">
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Documents.BlockUIContainer" /> class.</summary>
</Docs>
</MemberGroup>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public BlockUIContainer ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Documents.BlockUIContainer.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 BlockUIContainer();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<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>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new, empty instance of the <see cref="T:System.Windows.Documents.BlockUIContainer" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public BlockUIContainer (System.Windows.UIElement uiElement);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Windows.UIElement uiElement) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Windows.Documents.BlockUIContainer.#ctor(System.Windows.UIElement)" />
<MemberSignature Language="VB.NET" Value="Public Sub New (uiElement As UIElement)" />
<MemberSignature Language="F#" Value="new System.Windows.Documents.BlockUIContainer : System.Windows.UIElement -> System.Windows.Documents.BlockUIContainer" Usage="new System.Windows.Documents.BlockUIContainer uiElement" />
<MemberSignature Language="C++ CLI" Value="public:
 BlockUIContainer(System::Windows::UIElement ^ uiElement);" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<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>
<Parameters>
<Parameter Name="uiElement" Type="System.Windows.UIElement" />
</Parameters>
<Docs>
<param name="uiElement">An <see cref="T:System.Windows.UIElement" /> object specifying the initial contents of the new <see cref="T:System.Windows.Documents.BlockUIContainer" />.</param>
<summary>Initializes a new instance of the <see cref="T:System.Windows.Documents.BlockUIContainer" /> class, taking a specified <see cref="T:System.Windows.UIElement" /> object as the initial contents of the new <see cref="T:System.Windows.Documents.BlockUIContainer" />.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following example demonstrates usage of this constructor.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/TextBlock/Text/Window1.xaml.cs" id="Snippet_blockui_const1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb" id="Snippet_blockui_const1":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Child">
<MemberSignature Language="C#" Value="public System.Windows.UIElement Child { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Windows.UIElement Child" />
<MemberSignature Language="DocId" Value="P:System.Windows.Documents.BlockUIContainer.Child" />
<MemberSignature Language="VB.NET" Value="Public Property Child As UIElement" />
<MemberSignature Language="F#" Value="member this.Child : System.Windows.UIElement with get, set" Usage="System.Windows.Documents.BlockUIContainer.Child" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Windows::UIElement ^ Child { System::Windows::UIElement ^ get(); void set(System::Windows::UIElement ^ value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>PresentationFramework</AssemblyName>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<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.Windows.UIElement</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the <see cref="T:System.Windows.UIElement" /> hosted by the <see cref="T:System.Windows.Documents.BlockUIContainer" />.</summary>
<value>The <see cref="T:System.Windows.UIElement" /> hosted by the <see cref="T:System.Windows.Documents.BlockUIContainer" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
An <xref:System.Windows.Documents.BlockUIContainer> may directly host no more than one <xref:System.Windows.UIElement> child. However, the child element hosted by an <xref:System.Windows.Documents.BlockUIContainer> may host children of its own.
In XAML, wrapping a <xref:System.Windows.UIElement> in an <xref:System.Windows.Documents.BlockUIContainer> is equivalent to setting that <xref:System.Windows.UIElement> as the value of the <xref:System.Windows.Documents.BlockUIContainer.Child%2A> property.
## Examples
The following example shows how to use the <xref:System.Windows.Documents.BlockUIContainer> elements to host <xref:System.Windows.UIElement> elements within flow content.
:::code language="xaml" source="~/snippets/csharp/System.Windows.Controls/TextBlock/Text/Window1.xaml" id="Snippet_blockuixaml":::
The following figure shows how this example renders.
![Screenshot: UIElement embedded in flow content](~/add/media/blockuicontainer.png "Screenshot: UIElement embedded in flow content")
The following example shows how to use the <xref:System.Windows.Documents.BlockUIContainer.Child%2A> property programmatically.
:::code language="csharp" source="~/snippets/csharp/System.Windows.Controls/TextBlock/Text/Window1.xaml.cs" id="Snippet_blockui_child":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_Wpf/SpanSnippets/visualbasic/window1.xaml.vb" id="Snippet_blockui_child":::
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>