/
BindableObject.xml
777 lines (770 loc) · 50.8 KB
/
BindableObject.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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
<Type Name="BindableObject" FullName="Microsoft.Maui.Controls.BindableObject">
<TypeSignature Language="C#" Value="public abstract class BindableObject : Microsoft.Maui.Controls.Internals.IDynamicResourceHandler, System.ComponentModel.INotifyPropertyChanged" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit BindableObject extends System.Object implements class Microsoft.Maui.Controls.Internals.IDynamicResourceHandler, class System.ComponentModel.INotifyPropertyChanged" />
<TypeSignature Language="DocId" Value="T:Microsoft.Maui.Controls.BindableObject" />
<TypeSignature Language="VB.NET" Value="Public MustInherit Class BindableObject
Implements IDynamicResourceHandler, INotifyPropertyChanged" />
<TypeSignature Language="C++ CLI" Value="public ref class BindableObject abstract : Microsoft::Maui::Controls::Internals::IDynamicResourceHandler, System::ComponentModel::INotifyPropertyChanged" />
<TypeSignature Language="F#" Value="type BindableObject = class
 interface INotifyPropertyChanged
 interface IDynamicResourceHandler" />
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Microsoft.Maui.Controls.Internals.IDynamicResourceHandler</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.ComponentModel.INotifyPropertyChanged</InterfaceName>
</Interface>
</Interfaces>
<Docs>
<summary>
Provides a mechanism to propagate data changes from one object to another. Enables validation, type coercion, and an event system.
</summary>
<remarks>The <see cref="T:Microsoft.Maui.Controls.BindableObject" /> class provides a data storage mechanism that enables the application developer to synchronize data between objects in response to changes, for example, between the View and View Model in the MVVM design pattern. All of the visual elements in the <c>Microsoft.Maui.Controls</c> namespace inherit from <see cref="T:Microsoft.Maui.Controls.BindableObject" /> class, so they can all be used to bind the data behind their user interface.</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public BindableObject ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 BindableObject();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters />
<Docs>
<summary>
Initializes a new instance of the <see cref="T:Microsoft.Maui.Controls.BindableObject" /> class.
</summary>
<remarks>The <see cref="T:Microsoft.Maui.Controls.BindableObject" /> class is abstract, and this constructor is protected. It is invoked by child constructors.</remarks>
</Docs>
</Member>
<Member MemberName="ApplyBindings">
<MemberSignature Language="C#" Value="protected void ApplyBindings ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void ApplyBindings() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.ApplyBindings" />
<MemberSignature Language="VB.NET" Value="Protected Sub ApplyBindings ()" />
<MemberSignature Language="C++ CLI" Value="protected:
 void ApplyBindings();" />
<MemberSignature Language="F#" Value="member this.ApplyBindings : unit -> unit" Usage="bindableObject.ApplyBindings " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Applies all the current bindings to <see cref="P:Microsoft.Maui.Controls.BindableObject.BindingContext" />.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BindingContext">
<MemberSignature Language="C#" Value="public object BindingContext { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance object BindingContext" />
<MemberSignature Language="DocId" Value="P:Microsoft.Maui.Controls.BindableObject.BindingContext" />
<MemberSignature Language="VB.NET" Value="Public Property BindingContext As Object" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Object ^ BindingContext { System::Object ^ get(); void set(System::Object ^ value); };" />
<MemberSignature Language="F#" Value="member this.BindingContext : obj with get, set" Usage="Microsoft.Maui.Controls.BindableObject.BindingContext" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets or sets an object that contains the properties that will be targeted by the bound properties that belong to this <see cref="T:Microsoft.Maui.Controls.BindableObject" />.
This is a bindable property.
</summary>
<value>An <see cref="T:System.Object" /> that contains the properties that will be targeted by the bound properties that belong to this <see cref="T:Microsoft.Maui.Controls.BindableObject" />. This is a bindable property.</value>
<remarks>
Typically, the runtime performance is better if <see cref="P:Microsoft.Maui.Controls.BindableObject.BindingContext" /> is set after all calls to <see cref="M:Microsoft.Maui.Controls.BindableObject.SetBinding(Microsoft.Maui.Controls.BindableProperty,Microsoft.Maui.Controls.BindingBase)" /> have been made.
<para>The following example shows how to apply a BindingContext and a Binding to a Label (inherits from BindableObject):</para><example><code lang="csharp lang-csharp"><![CDATA[
var label = new Label ();
label.SetBinding (Label.TextProperty, "Name");
label.BindingContext = new {
Name = "John Doe",
Company = "Xamarin"
};
Debug.WriteLine (label.Text); // prints "John Doe"
]]></code></example></remarks>
</Docs>
</Member>
<Member MemberName="BindingContextChanged">
<MemberSignature Language="C#" Value="public event EventHandler BindingContextChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler BindingContextChanged" />
<MemberSignature Language="DocId" Value="E:Microsoft.Maui.Controls.BindableObject.BindingContextChanged" />
<MemberSignature Language="VB.NET" Value="Public Event BindingContextChanged As EventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event EventHandler ^ BindingContextChanged;" />
<MemberSignature Language="F#" Value="member this.BindingContextChanged : EventHandler " Usage="member this.BindingContextChanged : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>
Occurs when the value of the <see cref="P:Microsoft.Maui.Controls.BindableObject.BindingContext" /> property changes.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="BindingContextProperty">
<MemberSignature Language="C#" Value="public static readonly Microsoft.Maui.Controls.BindableProperty BindingContextProperty;" />
<MemberSignature Language="ILAsm" Value=".field public static initonly class Microsoft.Maui.Controls.BindableProperty BindingContextProperty" />
<MemberSignature Language="DocId" Value="F:Microsoft.Maui.Controls.BindableObject.BindingContextProperty" />
<MemberSignature Language="VB.NET" Value="Public Shared ReadOnly BindingContextProperty As BindableProperty " />
<MemberSignature Language="C++ CLI" Value="public: static initonly Microsoft::Maui::Controls::BindableProperty ^ BindingContextProperty;" />
<MemberSignature Language="F#" Value=" staticval mutable BindingContextProperty : Microsoft.Maui.Controls.BindableProperty" Usage="Microsoft.Maui.Controls.BindableObject.BindingContextProperty" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Maui.Controls.BindableProperty</ReturnType>
</ReturnValue>
<Docs>
<summary>Bindable property for <see cref="P:Microsoft.Maui.Controls.BindableObject.BindingContext" />.</summary>
<remarks>
Typically, the runtime performance is better if <see cref="P:Microsoft.Maui.Controls.BindableObject.BindingContext" /> is set after all calls to <see cref="M:Microsoft.Maui.Controls.BindableObject.SetBinding(Microsoft.Maui.Controls.BindableProperty,Microsoft.Maui.Controls.BindingBase)" /> have been made.
<para>The following example shows how to set a binding to the BindingContext:</para><example><code lang="csharp lang-csharp"><![CDATA[
class PersonView : ContentView
{
public PersonView ()
{
var label = new Label ();
label.SetBinding (Label.TextProperty, "Name");
Content = label;
}
}
var stack = new StackLayout {
Orientation = StackOrientation.Vertical,
};
var jane = new PersonView ();
jane.SetBinding (BindableObject.BindingContext, "Jane");
stack.Children.Add (jane);
var john = new PersonView ();
john.SetBinding (BindableObject.BindingContext, "John");
stack.Children.Add (john);
stack.BindingContext = new {Jane = new {Name = "Jane Doe"}, John = new {Name = "John Doe"}};
]]></code></example></remarks>
</Docs>
</Member>
<Member MemberName="ClearValue">
<MemberSignature Language="C#" Value="public void ClearValue (Microsoft.Maui.Controls.BindableProperty property);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ClearValue(class Microsoft.Maui.Controls.BindableProperty property) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.ClearValue(Microsoft.Maui.Controls.BindableProperty)" />
<MemberSignature Language="VB.NET" Value="Public Sub ClearValue (property As BindableProperty)" />
<MemberSignature Language="C++ CLI" Value="public:
 void ClearValue(Microsoft::Maui::Controls::BindableProperty ^ property);" />
<MemberSignature Language="F#" Value="member this.ClearValue : Microsoft.Maui.Controls.BindableProperty -> unit" Usage="bindableObject.ClearValue property" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" />
</Parameters>
<Docs>
<param name="property">The <see cref="T:Microsoft.Maui.Controls.BindableProperty" /> to clear the value for.</param>
<summary>
Clears any value that is previously set for a bindable property.
</summary>
<remarks>When <paramref name="property" /> is read-only, nothing will happen.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="property" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="ClearValue">
<MemberSignature Language="C#" Value="public void ClearValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ClearValue(class Microsoft.Maui.Controls.BindablePropertyKey propertyKey) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.ClearValue(Microsoft.Maui.Controls.BindablePropertyKey)" />
<MemberSignature Language="VB.NET" Value="Public Sub ClearValue (propertyKey As BindablePropertyKey)" />
<MemberSignature Language="C++ CLI" Value="public:
 void ClearValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey);" />
<MemberSignature Language="F#" Value="member this.ClearValue : Microsoft.Maui.Controls.BindablePropertyKey -> unit" Usage="bindableObject.ClearValue propertyKey" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyKey" Type="Microsoft.Maui.Controls.BindablePropertyKey" />
</Parameters>
<Docs>
<param name="propertyKey">The key that identifies the bindable property to clear the value for.</param>
<summary>
Clears any value that is previously set for a bindable property, identified by its key.
</summary>
<remarks>
<para>Calling this method on a readonly property will result in an InvalidOperationException.</para>
</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="propertyKey" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">Thrown when <paramref name="propertyKey" /> is a read-only property.</exception>
</Docs>
</Member>
<Member MemberName="CoerceValue">
<MemberSignature Language="C#" Value="public void CoerceValue (Microsoft.Maui.Controls.BindableProperty property);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CoerceValue(class Microsoft.Maui.Controls.BindableProperty property) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.CoerceValue(Microsoft.Maui.Controls.BindableProperty)" />
<MemberSignature Language="VB.NET" Value="Public Sub CoerceValue (property As BindableProperty)" />
<MemberSignature Language="C++ CLI" Value="public:
 void CoerceValue(Microsoft::Maui::Controls::BindableProperty ^ property);" />
<MemberSignature Language="F#" Value="member this.CoerceValue : Microsoft.Maui.Controls.BindableProperty -> unit" Usage="bindableObject.CoerceValue property" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" />
</Parameters>
<Docs>
<param name="property">The bindable property to coerce the value of.</param>
<summary>
Coerces the value of the specified bindable property.
This is done by invoking <see cref="T:Microsoft.Maui.Controls.BindableProperty.CoerceValueDelegate" /> of the specified bindable property.
</summary>
<remarks>If <see cref="T:Microsoft.Maui.Controls.BindableProperty.CoerceValueDelegate" /> is not assigned to, nothing will happen.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="property" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">Thrown when <paramref name="property" /> is read-only.</exception>
<exception cref="T:System.ArgumentException">Thrown when the value is invalid according to the assigned logic in <see cref="T:Microsoft.Maui.Controls.BindableProperty.ValidateValueDelegate" />.</exception>
</Docs>
</Member>
<Member MemberName="CoerceValue">
<MemberSignature Language="C#" Value="public void CoerceValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void CoerceValue(class Microsoft.Maui.Controls.BindablePropertyKey propertyKey) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.CoerceValue(Microsoft.Maui.Controls.BindablePropertyKey)" />
<MemberSignature Language="VB.NET" Value="Public Sub CoerceValue (propertyKey As BindablePropertyKey)" />
<MemberSignature Language="C++ CLI" Value="public:
 void CoerceValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey);" />
<MemberSignature Language="F#" Value="member this.CoerceValue : Microsoft.Maui.Controls.BindablePropertyKey -> unit" Usage="bindableObject.CoerceValue propertyKey" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyKey" Type="Microsoft.Maui.Controls.BindablePropertyKey" />
</Parameters>
<Docs>
<param name="propertyKey">The key that identifies the bindable property to coerce the value of.</param>
<summary>
Coerces the value of the specified bindable property.
This is done by invoking <see cref="T:Microsoft.Maui.Controls.BindableProperty.CoerceValueDelegate" /> of the specified bindable property.
</summary>
<remarks>If <see cref="T:Microsoft.Maui.Controls.BindableProperty.CoerceValueDelegate" /> is not assigned to, nothing will happen.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="propertyKey" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">Thrown when the bindable property identified by <paramref name="propertyKey" /> is read-only.</exception>
<exception cref="T:System.ArgumentException">Thrown when the value is invalid according to the assigned logic in <see cref="T:Microsoft.Maui.Controls.BindableProperty.ValidateValueDelegate" />.</exception>
</Docs>
</Member>
<Member MemberName="Dispatcher">
<MemberSignature Language="C#" Value="public Microsoft.Maui.Dispatching.IDispatcher Dispatcher { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Microsoft.Maui.Dispatching.IDispatcher Dispatcher" />
<MemberSignature Language="DocId" Value="P:Microsoft.Maui.Controls.BindableObject.Dispatcher" />
<MemberSignature Language="VB.NET" Value="Public ReadOnly Property Dispatcher As IDispatcher" />
<MemberSignature Language="C++ CLI" Value="public:
 property Microsoft::Maui::Dispatching::IDispatcher ^ Dispatcher { Microsoft::Maui::Dispatching::IDispatcher ^ get(); };" />
<MemberSignature Language="F#" Value="member this.Dispatcher : Microsoft.Maui.Dispatching.IDispatcher" Usage="Microsoft.Maui.Controls.BindableObject.Dispatcher" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Maui.Dispatching.IDispatcher</ReturnType>
</ReturnValue>
<Docs>
<summary>
Gets the dispatcher that was available when this bindable object was created,
otherwise tries to find the nearest available dispatcher (probably the window's/app's).
</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetValue">
<MemberSignature Language="C#" Value="public object GetValue (Microsoft.Maui.Controls.BindableProperty property);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance object GetValue(class Microsoft.Maui.Controls.BindableProperty property) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.GetValue(Microsoft.Maui.Controls.BindableProperty)" />
<MemberSignature Language="VB.NET" Value="Public Function GetValue (property As BindableProperty) As Object" />
<MemberSignature Language="C++ CLI" Value="public:
 System::Object ^ GetValue(Microsoft::Maui::Controls::BindableProperty ^ property);" />
<MemberSignature Language="F#" Value="member this.GetValue : Microsoft.Maui.Controls.BindableProperty -> obj" Usage="bindableObject.GetValue property" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Object</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" />
</Parameters>
<Docs>
<param name="property">The bindable property for which to get the value.</param>
<summary>
Returns the value that is contained in the given bindable property.
</summary>
<returns>The value that is contained in the <see cref="T:Microsoft.Maui.Controls.BindableProperty" />.</returns>
<remarks>
<see cref="M:Microsoft.Maui.Controls.BindableObject.GetValue(Microsoft.Maui.Controls.BindableProperty)" /> and <see cref="M:Microsoft.Maui.Controls.BindableObject.SetValue(Microsoft.Maui.Controls.BindableProperty,System.Object)" /> are used to access the values of properties that are implemented by a <see cref="T:Microsoft.Maui.Controls.BindableProperty" />.
That is, application developers typically provide an interface for a bound property by defining a <see langword="public" /> property whose <see langword="get" /> accessor casts the result of <see cref="M:Microsoft.Maui.Controls.BindableObject.GetValue(Microsoft.Maui.Controls.BindableProperty)" /> to the appropriate type and returns it, and whose <see langword="set" /> accessor uses <see cref="M:Microsoft.Maui.Controls.BindableObject.SetValue(Microsoft.Maui.Controls.BindableProperty,System.Object)" /> to set the value on the correct property.
Application developers should perform no other steps in the public property that defines the interface of the bound property.
</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="property" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="IsSet">
<MemberSignature Language="C#" Value="public bool IsSet (Microsoft.Maui.Controls.BindableProperty targetProperty);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance bool IsSet(class Microsoft.Maui.Controls.BindableProperty targetProperty) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.IsSet(Microsoft.Maui.Controls.BindableProperty)" />
<MemberSignature Language="VB.NET" Value="Public Function IsSet (targetProperty As BindableProperty) As Boolean" />
<MemberSignature Language="C++ CLI" Value="public:
 bool IsSet(Microsoft::Maui::Controls::BindableProperty ^ targetProperty);" />
<MemberSignature Language="F#" Value="member this.IsSet : Microsoft.Maui.Controls.BindableProperty -> bool" Usage="bindableObject.IsSet targetProperty" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="targetProperty" Type="Microsoft.Maui.Controls.BindableProperty" />
</Parameters>
<Docs>
<param name="targetProperty">The bindable property to check if a value is currently set.</param>
<summary>
Determines whether or not a bindable property exists and has a value set.
</summary>
<returns>
<see langword="true" /> if the target property exists and has been set. Otherwise <see langword="false" />.</returns>
<remarks>To be added.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="targetProperty" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource">
<MemberSignature Language="C#" Value="void IDynamicResourceHandler.SetDynamicResource (Microsoft.Maui.Controls.BindableProperty property, string key);" />
<MemberSignature Language="ILAsm" Value=".method hidebysig newslot virtual instance void Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource(class Microsoft.Maui.Controls.BindableProperty property, string key) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.Microsoft#Maui#Controls#Internals#IDynamicResourceHandler#SetDynamicResource(Microsoft.Maui.Controls.BindableProperty,System.String)" />
<MemberSignature Language="VB.NET" Value="Sub SetDynamicResource (property As BindableProperty, key As String) Implements IDynamicResourceHandler.SetDynamicResource" />
<MemberSignature Language="C++ CLI" Value=" virtual void Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource(Microsoft::Maui::Controls::BindableProperty ^ property, System::String ^ key) = Microsoft::Maui::Controls::Internals::IDynamicResourceHandler::SetDynamicResource;" />
<MemberSignature Language="F#" Value="abstract member Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource : Microsoft.Maui.Controls.BindableProperty * string -> unit
override this.Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource : Microsoft.Maui.Controls.BindableProperty * string -> unit" Usage="bindableObject.Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource (property, key)" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Microsoft.Maui.Controls.Internals.IDynamicResourceHandler.SetDynamicResource(Microsoft.Maui.Controls.BindableProperty,System.String)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" />
<Parameter Name="key" Type="System.String" />
</Parameters>
<Docs>
<param name="property">To be added.</param>
<param name="key">To be added.</param>
<summary>To be added.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnBindingContextChanged">
<MemberSignature Language="C#" Value="protected virtual void OnBindingContextChanged ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnBindingContextChanged() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.OnBindingContextChanged" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub OnBindingContextChanged ()" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual void OnBindingContextChanged();" />
<MemberSignature Language="F#" Value="abstract member OnBindingContextChanged : unit -> unit
override this.OnBindingContextChanged : unit -> unit" Usage="bindableObject.OnBindingContextChanged " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Raises the <see cref="E:Microsoft.Maui.Controls.BindableObject.BindingContextChanged" /> event.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnPropertyChanged">
<MemberSignature Language="C#" Value="protected virtual void OnPropertyChanged (string propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnPropertyChanged(string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.OnPropertyChanged(System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub OnPropertyChanged (Optional propertyName As String = Nothing)" />
<MemberSignature Language="F#" Value="abstract member OnPropertyChanged : string -> unit
override this.OnPropertyChanged : string -> unit" Usage="bindableObject.OnPropertyChanged propertyName" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="propertyName">The name of the property that has changed.</param>
<summary>
Raises the <see cref="E:Microsoft.Maui.Controls.BindableObject.PropertyChanged" /> event.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="OnPropertyChanging">
<MemberSignature Language="C#" Value="protected virtual void OnPropertyChanging (string propertyName = default);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance void OnPropertyChanging(string propertyName) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.OnPropertyChanging(System.String)" />
<MemberSignature Language="VB.NET" Value="Protected Overridable Sub OnPropertyChanging (Optional propertyName As String = Nothing)" />
<MemberSignature Language="F#" Value="abstract member OnPropertyChanging : string -> unit
override this.OnPropertyChanging : string -> unit" Usage="bindableObject.OnPropertyChanging propertyName" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyName" Type="System.String">
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.CallerMemberName]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.CallerMemberName>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="propertyName">The name of the property that is changing.</param>
<summary>
Raises the <see cref="E:Microsoft.Maui.Controls.BindableObject.PropertyChanging" /> event.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PropertyChanged">
<MemberSignature Language="C#" Value="public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;" />
<MemberSignature Language="ILAsm" Value=".event class System.ComponentModel.PropertyChangedEventHandler PropertyChanged" />
<MemberSignature Language="DocId" Value="E:Microsoft.Maui.Controls.BindableObject.PropertyChanged" />
<MemberSignature Language="VB.NET" Value="Public Event PropertyChanged As PropertyChangedEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 virtual event System::ComponentModel::PropertyChangedEventHandler ^ PropertyChanged;" />
<MemberSignature Language="F#" Value="member this.PropertyChanged : System.ComponentModel.PropertyChangedEventHandler " Usage="member this.PropertyChanged : System.ComponentModel.PropertyChangedEventHandler " />
<MemberType>Event</MemberType>
<Implements>
<InterfaceMember>E:System.ComponentModel.INotifyPropertyChanged.PropertyChanged</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.ComponentModel.PropertyChangedEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>
Occurs when a property value changes.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="PropertyChanging">
<MemberSignature Language="C#" Value="public event Microsoft.Maui.Controls.PropertyChangingEventHandler PropertyChanging;" />
<MemberSignature Language="ILAsm" Value=".event class Microsoft.Maui.Controls.PropertyChangingEventHandler PropertyChanging" />
<MemberSignature Language="DocId" Value="E:Microsoft.Maui.Controls.BindableObject.PropertyChanging" />
<MemberSignature Language="VB.NET" Value="Public Event PropertyChanging As PropertyChangingEventHandler " />
<MemberSignature Language="C++ CLI" Value="public:
 event Microsoft::Maui::Controls::PropertyChangingEventHandler ^ PropertyChanging;" />
<MemberSignature Language="F#" Value="member this.PropertyChanging : Microsoft.Maui.Controls.PropertyChangingEventHandler " Usage="member this.PropertyChanging : Microsoft.Maui.Controls.PropertyChangingEventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Maui.Controls.PropertyChangingEventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>
Occurs when a property value is changing.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RemoveBinding">
<MemberSignature Language="C#" Value="public void RemoveBinding (Microsoft.Maui.Controls.BindableProperty property);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void RemoveBinding(class Microsoft.Maui.Controls.BindableProperty property) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.RemoveBinding(Microsoft.Maui.Controls.BindableProperty)" />
<MemberSignature Language="VB.NET" Value="Public Sub RemoveBinding (property As BindableProperty)" />
<MemberSignature Language="C++ CLI" Value="public:
 void RemoveBinding(Microsoft::Maui::Controls::BindableProperty ^ property);" />
<MemberSignature Language="F#" Value="member this.RemoveBinding : Microsoft.Maui.Controls.BindableProperty -> unit" Usage="bindableObject.RemoveBinding property" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" />
</Parameters>
<Docs>
<param name="property">The bindable property from which to remove bindings.</param>
<summary>
Removes a previously set binding from a bindable property.
</summary>
<remarks>When <paramref name="property" /> is not currently bound, nothing will happen.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="property" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="SetBinding">
<MemberSignature Language="C#" Value="public void SetBinding (Microsoft.Maui.Controls.BindableProperty targetProperty, Microsoft.Maui.Controls.BindingBase binding);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetBinding(class Microsoft.Maui.Controls.BindableProperty targetProperty, class Microsoft.Maui.Controls.BindingBase binding) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.SetBinding(Microsoft.Maui.Controls.BindableProperty,Microsoft.Maui.Controls.BindingBase)" />
<MemberSignature Language="VB.NET" Value="Public Sub SetBinding (targetProperty As BindableProperty, binding As BindingBase)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SetBinding(Microsoft::Maui::Controls::BindableProperty ^ targetProperty, Microsoft::Maui::Controls::BindingBase ^ binding);" />
<MemberSignature Language="F#" Value="member this.SetBinding : Microsoft.Maui.Controls.BindableProperty * Microsoft.Maui.Controls.BindingBase -> unit" Usage="bindableObject.SetBinding (targetProperty, binding)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="targetProperty" Type="Microsoft.Maui.Controls.BindableProperty" />
<Parameter Name="binding" Type="Microsoft.Maui.Controls.BindingBase" />
</Parameters>
<Docs>
<param name="targetProperty">The bindable property on which to apply <paramref name="binding" />.</param>
<param name="binding">The binding to set for <paramref name="targetProperty" />.</param>
<summary>
Assigns a binding to a bindable property.
</summary>
<remarks>
<para>The following example shows how to set a binding to a property:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var label = new Label ();
label.SetBinding (Label.TextProperty, new Binding ("Name"));
label.BindingContext = new {
Name = "John Doe",
Company = "Xamarin"
};
Debug.WriteLine (label.Text); // prints "John Doe"
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="SetInheritedBindingContext">
<MemberSignature Language="C#" Value="public static void SetInheritedBindingContext (Microsoft.Maui.Controls.BindableObject bindable, object value);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig void SetInheritedBindingContext(class Microsoft.Maui.Controls.BindableObject bindable, object value) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext(Microsoft.Maui.Controls.BindableObject,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Shared Sub SetInheritedBindingContext (bindable As BindableObject, value As Object)" />
<MemberSignature Language="C++ CLI" Value="public:
 static void SetInheritedBindingContext(Microsoft::Maui::Controls::BindableObject ^ bindable, System::Object ^ value);" />
<MemberSignature Language="F#" Value="static member SetInheritedBindingContext : Microsoft.Maui.Controls.BindableObject * obj -> unit" Usage="Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext (bindable, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="bindable" Type="Microsoft.Maui.Controls.BindableObject" />
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="bindable">The object on which to set the inherited binding context.</param>
<param name="value">The inherited context to set.</param>
<summary>
Sets the inherited context to a nested element.
</summary>
<remarks>For internal use only. This API can be changed or removed without notice at any time.</remarks>
</Docs>
</Member>
<Member MemberName="SetValue">
<MemberSignature Language="C#" Value="public void SetValue (Microsoft.Maui.Controls.BindableProperty property, object value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetValue(class Microsoft.Maui.Controls.BindableProperty property, object value) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.SetValue(Microsoft.Maui.Controls.BindableProperty,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Sub SetValue (property As BindableProperty, value As Object)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SetValue(Microsoft::Maui::Controls::BindableProperty ^ property, System::Object ^ value);" />
<MemberSignature Language="F#" Value="member this.SetValue : Microsoft.Maui.Controls.BindableProperty * obj -> unit" Usage="bindableObject.SetValue (property, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" />
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="property">The bindable property on which to assign a value.</param>
<param name="value">The value to set.</param>
<summary>
Sets the value of the specified bindable property.
</summary>
<remarks>If <paramref name="property" /> is read-only, nothing will happen.</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="property" /> is <see langword="null" />.</exception>
</Docs>
</Member>
<Member MemberName="SetValue">
<MemberSignature Language="C#" Value="public void SetValue (Microsoft.Maui.Controls.BindablePropertyKey propertyKey, object value);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetValue(class Microsoft.Maui.Controls.BindablePropertyKey propertyKey, object value) cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.SetValue(Microsoft.Maui.Controls.BindablePropertyKey,System.Object)" />
<MemberSignature Language="VB.NET" Value="Public Sub SetValue (propertyKey As BindablePropertyKey, value As Object)" />
<MemberSignature Language="C++ CLI" Value="public:
 void SetValue(Microsoft::Maui::Controls::BindablePropertyKey ^ propertyKey, System::Object ^ value);" />
<MemberSignature Language="F#" Value="member this.SetValue : Microsoft.Maui.Controls.BindablePropertyKey * obj -> unit" Usage="bindableObject.SetValue (propertyKey, value)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="propertyKey" Type="Microsoft.Maui.Controls.BindablePropertyKey" />
<Parameter Name="value" Type="System.Object" />
</Parameters>
<Docs>
<param name="propertyKey">The key that identifies the bindable property to assign the value to.</param>
<param name="value">The value to set.</param>
<summary>
Sets the value of the specified bindable property.
</summary>
<remarks>
<para>This method and <see cref="T:Microsoft.Maui.Controls.BindablePropertyKey" /> are useful to implement BindableProperties with limited write access. The write access is limited to the scope of the BindablePropertyKey.</para>
<para>The following example shows how to declare a BindableProperty with "internal" write access.</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
class MyBindable : BindableObject
{
internal static readonly BindablePropertyKey MyPropertyKey =
BindableProperty.CreateReadOnly<MyBindable, string> (w => w.My, default(string));
public static readonly BindableProperty MyProperty = MyPropertyKey.BindableProperty;
public string My {
get { return (string)GetValue (MyProperty); }
internal set { SetValue (MyPropertyKey, value); }
}
}
]]></code>
</example>
</remarks>
<exception cref="T:System.ArgumentNullException">Thrown when <paramref name="propertyKey" /> is <see langword="null" />.</exception>
<exception cref="T:System.InvalidOperationException">Thrown when the bindable property identified by <paramref name="propertyKey" /> is read-only.</exception>
</Docs>
</Member>
<Member MemberName="SetValueCore">
<MemberSignature Language="C#" Value="public void SetValueCore (Microsoft.Maui.Controls.BindableProperty property, object value, Microsoft.Maui.Controls.Internals.SetValueFlags attributes = Microsoft.Maui.Controls.Internals.SetValueFlags.None);" FrameworkAlternate="net-maui-7.0" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetValueCore(class Microsoft.Maui.Controls.BindableProperty property, object value, valuetype Microsoft.Maui.Controls.Internals.SetValueFlags attributes) cil managed" FrameworkAlternate="net-maui-7.0" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.SetValueCore(Microsoft.Maui.Controls.BindableProperty,System.Object,Microsoft.Maui.Controls.Internals.SetValueFlags)" FrameworkAlternate="net-maui-7.0" />
<MemberSignature Language="VB.NET" Value="Public Sub SetValueCore (property As BindableProperty, value As Object, Optional attributes As SetValueFlags = Microsoft.Maui.Controls.Internals.SetValueFlags.None)" FrameworkAlternate="net-maui-7.0" />
<MemberSignature Language="F#" Value="member this.SetValueCore : Microsoft.Maui.Controls.BindableProperty * obj * Microsoft.Maui.Controls.Internals.SetValueFlags -> unit" Usage="bindableObject.SetValueCore (property, value, attributes)" FrameworkAlternate="net-maui-7.0" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="net-maui-7.0">
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType FrameworkAlternate="net-maui-7.0">System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="property" Type="Microsoft.Maui.Controls.BindableProperty" Index="0" FrameworkAlternate="net-maui-7.0" />
<Parameter Name="value" Type="System.Object" Index="1" FrameworkAlternate="net-maui-7.0" />
<Parameter Name="attributes" Type="Microsoft.Maui.Controls.Internals.SetValueFlags" Index="2" FrameworkAlternate="net-maui-7.0" />
</Parameters>
<Docs>
<param name="property">For internal use by the Microsoft.Maui.Controls platform.</param>
<param name="value">For internal use by the Microsoft.Maui.Controls platform.</param>
<param name="attributes">For internal use by the Microsoft.Maui.Controls platform.</param>
<summary>For internal use by the Microsoft.Maui.Controls platform.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="UnapplyBindings">
<MemberSignature Language="C#" Value="protected void UnapplyBindings ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig instance void UnapplyBindings() cil managed" />
<MemberSignature Language="DocId" Value="M:Microsoft.Maui.Controls.BindableObject.UnapplyBindings" />
<MemberSignature Language="VB.NET" Value="Protected Sub UnapplyBindings ()" />
<MemberSignature Language="C++ CLI" Value="protected:
 void UnapplyBindings();" />
<MemberSignature Language="F#" Value="member this.UnapplyBindings : unit -> unit" Usage="bindableObject.UnapplyBindings " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Maui.Controls</AssemblyName>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>
Removes all current bindings from the current context.
</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>