-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
TemplateContainer.xml
122 lines (109 loc) · 8.81 KB
/
TemplateContainer.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
<Type Name="TemplateContainer" FullName="System.Web.UI.MobileControls.TemplateContainer">
<TypeSignature Language="C#" Value="public class TemplateContainer : System.Web.UI.MobileControls.Panel, System.Web.UI.INamingContainer" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit TemplateContainer extends System.Web.UI.MobileControls.Panel implements class System.Web.UI.INamingContainer" />
<TypeSignature Language="DocId" Value="T:System.Web.UI.MobileControls.TemplateContainer" />
<TypeSignature Language="VB.NET" Value="Public Class TemplateContainer
Inherits Panel
Implements INamingContainer" />
<TypeSignature Language="F#" Value="type TemplateContainer = class
 inherit Panel
 interface INamingContainer" />
<TypeSignature Language="C++ CLI" Value="public ref class TemplateContainer : System::Web::UI::MobileControls::Panel, System::Web::UI::INamingContainer" />
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Web.UI.MobileControls.Panel</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>System.Web.UI.INamingContainer</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.ToolboxItem(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.ToolboxItem(false)>]</AttributeName>
</Attribute>
<Attribute 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">
<AttributeName Language="C#">[System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("The System.Web.Mobile.dll assembly has been deprecated and should no longer be used. For information about how to develop ASP.NET mobile applications, see http://go.microsoft.com/fwlink/?LinkId=157231.")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Derived from the <see cref="T:System.Web.UI.MobileControls.Panel" /> class and used by ASP.NET to contain <see cref="T:System.Web.UI.MobileControls.DeviceSpecificChoice" /> templates. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
If a mobile control provides templated rendering features through device templates, it must create instances of each template inside a separate control of type <xref:System.Web.UI.MobileControls.TemplateContainer>. If a data-binding expression is in a control in a template, the `Container` variable of the expression is always of type <xref:System.Web.UI.MobileControls.TemplateContainer>.
## Examples
The following code example demonstrates how to use <xref:System.Web.UI.MobileControls.TemplateContainer> objects to create templates within a <xref:System.Web.UI.MobileControls.DeviceSpecific> object in a mobile form.
> [!NOTE]
> The following code sample uses the single-file code model and may not work correctly if copied directly into a code-behind file. This code sample must be copied into an empty text file that has an .aspx extension. For more information on the Web Forms code model, see [ASP.NET Web Forms Page Code Model](https://learn.microsoft.com/previous-versions/aspnet/015103yb(v=vs.100)).
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/MobileTemplateContainerSample/cs/Default.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/MobileTemplateContainerSample/vb/Default.aspx" id="Snippet1":::
All of the code above can be replaced declaratively with the following markup:
The Web.config file must have the following lines:
]]></format>
</remarks>
<altmember cref="T:System.Web.UI.MobileControls.MobileListItem" />
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/67276kc5(v=vs.100)">Architectural Overview of Adaptive Control Behavior</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/x5bxt7h7(v=vs.85)">Container Controls</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/7s9fybz5(v=vs.100)">Developing Mobile Web Applications</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/wa9x6tza(v=vs.100)">Mobile Device Capabilities</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public TemplateContainer ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.UI.MobileControls.TemplateContainer.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 TemplateContainer();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Creates a new instance of the <see cref="T:System.Web.UI.MobileControls.TemplateContainer" /> class. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<remarks>To be added.</remarks>
<related type="Article" href="https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/x5bxt7h7(v=vs.85)">Container Controls</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/7s9fybz5(v=vs.100)">Developing Mobile Web Applications</related>
<related type="Article" href="https://learn.microsoft.com/previous-versions/aspnet/wa9x6tza(v=vs.100)">Mobile Device Capabilities</related>
</Docs>
</Member>
<Member MemberName="BreakAfter">
<MemberSignature Language="C#" Value="public override bool BreakAfter { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool BreakAfter" />
<MemberSignature Language="DocId" Value="P:System.Web.UI.MobileControls.TemplateContainer.BreakAfter" />
<MemberSignature Language="VB.NET" Value="Public Overrides Property BreakAfter As Boolean" />
<MemberSignature Language="F#" Value="member this.BreakAfter : bool with get, set" Usage="System.Web.UI.MobileControls.TemplateContainer.BreakAfter" />
<MemberSignature Language="C++ CLI" Value="public:
 virtual property bool BreakAfter { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web.Mobile</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.DefaultValue(false)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.DefaultValue(false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a property that determines whether an additional trailing break is rendered after the control. This break causes subsequent content to start on the next line. The default is <see langword="true" />. This API is obsolete. For information about how to develop ASP.NET mobile applications, see <see href="https://learn.microsoft.com/aspnet/mobile/overview">Mobile Apps & Sites with ASP.NET</see>.</summary>
<value>
<see langword="true" /> if an additional trailing break is rendered after the control; otherwise, <see langword="false" />.</value>
<remarks>To be added.</remarks>
<altmember cref="P:System.Web.UI.MobileControls.Panel.BreakAfter" />
</Docs>
</Member>
</Members>
</Type>