-
Notifications
You must be signed in to change notification settings - Fork 4
/
BindingCondition.xml
135 lines (135 loc) · 8.83 KB
/
BindingCondition.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
<Type Name="BindingCondition" FullName="Microsoft.Maui.Controls.BindingCondition">
<TypeSignature Language="C#" Value="public sealed class BindingCondition : Microsoft.Maui.Controls.Condition, Microsoft.Maui.Controls.Xaml.IValueProvider" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit BindingCondition extends Microsoft.Maui.Controls.Condition implements class Microsoft.Maui.Controls.Xaml.IValueProvider" />
<TypeSignature Language="DocId" Value="T:Microsoft.Maui.Controls.BindingCondition" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class BindingCondition
Inherits Condition
Implements IValueProvider" />
<TypeSignature Language="C++ CLI" Value="public ref class BindingCondition sealed : Microsoft::Maui::Controls::Condition, Microsoft::Maui::Controls::Xaml::IValueProvider" />
<TypeSignature Language="F#" Value="type BindingCondition = class
 inherit Condition
 interface IValueProvider" />
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Microsoft.Maui.Controls.Condition</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Maui.Controls.Xaml.IValueProvider</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider]</AttributeName>
<AttributeName Language="F#">[<Microsoft.Maui.Controls.Xaml.AcceptEmptyServiceProvider>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Class that represents a value comparison with the target of an arbitrary binding.</summary>
<remarks>
<para>The <see cref="T:Microsoft.Maui.Controls.BindingCondition" /> class can compare a value a binding on any class within the current scope. Developers who want to compare to a value to a bound property on the control that contains the conditions surrounding <see cref="T:Microsoft.Maui.Controls.MultiTrigger" /> may want to use a <see cref="T:Microsoft.Maui.Controls.PropertyCondition" /> in addition to any binding conditions in the trigger list. </para>
<example>
<para>The XML example below creates a binding condition within a surrounding <see cref="T:Microsoft.Maui.Controls.MultiTrigger" /> (omitted) that succeeds when the referenced <c>name</c> has a <c>Text.Length</c> property length that is equal to <c>0</c>. (<c>name</c> must refer to an element, such as a <see cref="T:Microsoft.Maui.Controls.TextCell" />, that has a <c>Text</c> property that, in turn, has a <c>Length</c> property.)</para>
<code lang="XML"><![CDATA[
<BindingCondition Binding="{Binding Source={x:Reference name},
Path=Text.Length}"
Value="0" />]]></code>
</example>
</remarks>
<altmember cref="T:Microsoft.Maui.Controls.MultiTrigger" />
<altmember cref="T:Microsoft.Maui.Controls.PropertyCondition" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public BindingCondition ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindingCondition.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 BindingCondition();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>Initializes a new <see cref="T:Microsoft.Maui.Controls.BindingCondition" /> instance.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Binding">
<MemberSignature Language="C#" Value="public Microsoft.Maui.Controls.BindingBase Binding { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Maui.Controls.BindingBase Binding" />
<MemberSignature Language="DocId" Value="P:Microsoft.Maui.Controls.BindingCondition.Binding" />
<MemberSignature Language="VB.NET" Value="Public Property Binding As BindingBase" />
<MemberSignature Language="C++ CLI" Value="public:
 property Microsoft::Maui::Controls::BindingBase ^ Binding { Microsoft::Maui::Controls::BindingBase ^ get(); void set(Microsoft::Maui::Controls::BindingBase ^ value); };" />
<MemberSignature Language="F#" Value="member this.Binding : Microsoft.Maui.Controls.BindingBase with get, set" Usage="Microsoft.Maui.Controls.BindingCondition.Binding" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Maui.Controls.BindingBase</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the binding against which the <see cref="P:Microsoft.Maui.Controls.BindingCondition.Value" /> property will be compared.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue">
<MemberSignature Language="C#" Value="object IValueProvider.ProvideValue (IServiceProvider serviceProvider);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance object Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue(class System.IServiceProvider serviceProvider) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindingCondition.Microsoft#Maui#Controls#Xaml#IValueProvider#ProvideValue(System.IServiceProvider)" />
<MemberSignature Language="VB.NET" Value="Function ProvideValue (serviceProvider As IServiceProvider) As Object Implements IValueProvider.ProvideValue" />
<MemberSignature Language="C++ CLI" Value=" virtual System::Object ^ Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue(IServiceProvider ^ serviceProvider) = Microsoft::Maui::Controls::Xaml::IValueProvider::ProvideValue;" />
<MemberSignature Language="F#" Value="abstract member Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue : IServiceProvider -> obj
override this.Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue : IServiceProvider -> obj" Usage="bindingCondition.Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue serviceProvider" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.Maui.Controls.Xaml.IValueProvider.ProvideValue(System.IServiceProvider)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="serviceProvider" Type="System.IServiceProvider" />
</Parameters>
<Docs>
<param name="serviceProvider">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="Value">
<MemberSignature Language="C#" Value="public object Value { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance object Value" />
<MemberSignature Language="DocId" Value="P:Microsoft.Maui.Controls.BindingCondition.Value" />
<MemberSignature Language="VB.NET" Value="Public Property Value As Object" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Object ^ Value { System::Object ^ get(); void set(System::Object ^ value); };" />
<MemberSignature Language="F#" Value="member this.Value : obj with get, set" Usage="Microsoft.Maui.Controls.BindingCondition.Value" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>9.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Docs>
<summary>The binding value that satisfies the condition.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>