-
Notifications
You must be signed in to change notification settings - Fork 42
/
UIBarButtonItem.xml
1844 lines (1843 loc) · 114 KB
/
UIBarButtonItem.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
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="UIBarButtonItem" FullName="UIKit.UIBarButtonItem">
<TypeSignature Language="C#" Value="public class UIBarButtonItem : UIKit.UIBarItem, IDisposable, UIKit.IUISpringLoadedInteractionSupporting" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit UIBarButtonItem extends UIKit.UIBarItem implements class Foundation.INSCoding, class ObjCRuntime.INativeObject, class System.IDisposable, class UIKit.IUISpringLoadedInteractionSupporting" />
<TypeSignature Language="DocId" Value="T:UIKit.UIBarButtonItem" />
<TypeSignature Language="F#" Value="type UIBarButtonItem = class
 inherit UIBarItem
 interface INSCoding
 interface INativeObject
 interface IDisposable
 interface IUISpringLoadedInteractionSupporting" />
<AssemblyInfo>
<AssemblyName>Xamarin.iOS</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>UIKit.UIBarItem</BaseTypeName>
</Base>
<Interfaces>
<Interface>
<InterfaceName>Foundation.INSCoding</InterfaceName>
</Interface>
<Interface>
<InterfaceName>ObjCRuntime.INativeObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>UIKit.IUISpringLoadedInteractionSupporting</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName>Foundation.Register("UIBarButtonItem", true)</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>A button item hosted in either a <see cref="T:UIKit.UIToolbar" /> or a <see cref="T:UIKit.UINavigationBar" />.</summary>
<remarks>
<para>UIBarButtonItems are special buttons designed to be placed in either a <see cref="T:UIKit.UIToolbar" /> or a <see cref="T:UIKit.UINavigationBar" />. They show either a title or an image and change their appearance when pressed. UIBarButtonItems can also be set to a number of system provided button styles available in the <see cref="T:UIKit.UIBarButtonSystemItem" /> enumeration.
</para>
<para>In iOS 11, the layout strategy for <see cref="T:UIKit.UIBarButtonItem" /> objects changed from autoresizing to constraints. Developers who embed other elements in their <see cref="T:UIKit.UIBarButtonItem" /> objects (such as an embedded <see cref="T:UIKit.UIButton" />) should explicitly set constraints, as shown in the following example:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var btn = new UIButton();
btn.TranslatesAutoresizingMaskIntoConstraints = false;
btn.WidthAnchor.ConstraintEqualTo(32.0f).Active = true;
btn.HeightAnchor.ConstraintEqualTo(32.0f).Active = true;
var barButtonItem = new UIBarButtonItem(btn);
]]></code>
</example>
</remarks>
<altmember cref="T:UIKit.UIToolbar" />
<altmember cref="T:UIKit.UINavigationBar" />
<related type="externalDocumentation" href="https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIBarButtonItem_Class/index.html">Apple documentation for <c>UIBarButtonItem</c></related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("init")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.DesignatedInitializer</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Default constructor that initializes a new instance of this class with no parameters.</summary>
<remarks>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (Foundation.NSCoder coder);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Foundation.NSCoder coder) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(Foundation.NSCoder)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : Foundation.NSCoder -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem coder" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithCoder:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.DesignatedInitializer</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="coder" Type="Foundation.NSCoder" />
</Parameters>
<Docs>
<param name="coder">The unarchiver object.</param>
<summary>A constructor that initializes the object from the data stored in the unarchiver object.</summary>
<remarks>
<para>This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization). This is part of the <see cref="T:Foundation.NSCoding" /> protocol.</para>
<para>If developers want to create a subclass of this object and continue to support deserialization from an archive, they should implement a constructor with an identical signature: taking a single parameter of type <see cref="T:Foundation.NSCoder" /> and decorate it with the [Export("initWithCoder:"] attribute declaration.</para>
<para>The state of this object can also be serialized by using the companion method, EncodeTo.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected UIBarButtonItem (Foundation.NSObjectFlag t);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class Foundation.NSObjectFlag t) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(Foundation.NSObjectFlag)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : Foundation.NSObjectFlag -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem t" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="t" Type="Foundation.NSObjectFlag" />
</Parameters>
<Docs>
<param name="t">Unused sentinel value, pass NSObjectFlag.Empty.</param>
<summary>Constructor to call on derived classes to skip initialization and merely allocate the object.</summary>
<remarks>
<para>This constructor should be called by derived classes when they completely construct the object in managed code and merely want the runtime to allocate and initialize the NSObject. This is required to implement the two-step initialization process that Objective-C uses, the first step is to perform the object allocation, the second step is to initialize the object. When developers invoke the constructor that takes the NSObjectFlag.Empty they take advantage of a direct path that goes all the way up to NSObject to merely allocate the object's memory and bind the Objective-C and C# objects together. The actual initialization of the object is up to the developer.</para>
<para>This constructor is typically used by the binding generator to allocate the object, but prevent the actual initialization to take place. Once the allocation has taken place, the constructor has to initialize the object. With constructors generated by the binding generator this means that it manually invokes one of the "init" methods to initialize the object.</para>
<para>It is the developer's responsibility to completely initialize the object if they chain up using the NSObjectFlag.Empty path.</para>
<para>In general, if the developer's constructor invokes the NSObjectFlag.Empty base implementation, then it should be calling an Objective-C init method. If this is not the case, developers should instead chain to the proper constructor in their class. </para>
<para>The argument value is ignored and merely ensures that the only code that is executed is the construction phase is the basic NSObject allocation and runtime type registration. Typically the chaining would look like this:</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
var initWithFrame = new Selector ("initWithFrame:").Handle;
if (IsDirectBinding)
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
else
Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}
]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected internal UIBarButtonItem (IntPtr handle);" />
<MemberSignature Language="ILAsm" Value=".method familyorassemblyhidebysig specialname rtspecialname instance void .ctor(native int handle) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(System.IntPtr)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : nativeint -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem handle" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="handle" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="handle">Pointer (handle) to the unmanaged object.</param>
<summary>A constructor used when creating managed representations of unmanaged objects; Called by the runtime.</summary>
<remarks>
<para>This constructor is invoked by the runtime infrastructure (<see cref="M:ObjCRuntime.Runtime.GetNSObject(System.IntPtr)" />) to create a new managed representation for a pointer to an unmanaged Objective-C object. Developers should not invoke this method directly, instead they should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIBarButtonSystemItem systemItem);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype UIKit.UIBarButtonSystemItem systemItem) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIBarButtonSystemItem)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIBarButtonSystemItem -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem systemItem" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Parameters>
<Parameter Name="systemItem" Type="UIKit.UIBarButtonSystemItem" />
</Parameters>
<Docs>
<param name="systemItem">The <see cref="T:UIKit.UIBarButtonSystemItem" /> used to create the button.</param>
<summary>Constructor that allows a particular <see cref="T:UIKit.UIBarButtonSystemItem" /> to be specified when the button is created.</summary>
<remarks>The <see cref="T:UIKit.UIBarButtonSystemItem" /> allows a number of buttons pre-defined by the system to be used when creating a UIBarButtonItem.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIView customView);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class UIKit.UIView customView) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIView)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIView -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem customView" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithCustomView:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="customView" Type="UIKit.UIView" />
</Parameters>
<Docs>
<param name="customView">The custom view to use when creating the UIBarButtonItem.</param>
<summary>Constructor that allows a custom view to be specified for a UIBarButtonItem.</summary>
<remarks>The custom view allows an arbitray <see cref="T:UIKit.UIView" /> to be used for the UIBarButtonItem.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIBarButtonSystemItem systemItem, EventHandler handler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype UIKit.UIBarButtonSystemItem systemItem, class System.EventHandler handler) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIBarButtonSystemItem,System.EventHandler)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIBarButtonSystemItem * EventHandler -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (systemItem, handler)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Parameters>
<Parameter Name="systemItem" Type="UIKit.UIBarButtonSystemItem" />
<Parameter Name="handler" Type="System.EventHandler" />
</Parameters>
<Docs>
<param name="systemItem">The <see cref="T:UIKit.UIBarButtonSystemItem" /> used to create the button.</param>
<param name="handler">The event handler to be called when the button is pressed.</param>
<summary>Constructor that allows a particular <see cref="T:UIKit.UIBarButtonSystemItem" /> to be specified when the button is created along with an event handler.</summary>
<remarks>The event handler will be called when the button is pressed.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (string title, UIKit.UIBarButtonItemStyle style, EventHandler handler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string title, valuetype UIKit.UIBarButtonItemStyle style, class System.EventHandler handler) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(System.String,UIKit.UIBarButtonItemStyle,System.EventHandler)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : string * UIKit.UIBarButtonItemStyle * EventHandler -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (title, style, handler)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Parameters>
<Parameter Name="title" Type="System.String" />
<Parameter Name="style" Type="UIKit.UIBarButtonItemStyle" />
<Parameter Name="handler" Type="System.EventHandler" />
</Parameters>
<Docs>
<param name="title">String value used to display the title of the button.</param>
<param name="style">A style value defined in <see cref="T:UIKit.UIBarButtonItemStyle" />.</param>
<param name="handler">The event handler to be called when the button is pressed.</param>
<summary>Constructor that allows a title to be specified for display on the button depending on the style used. Also allows an event handler to be specified that will be called when the button is pressed.</summary>
<remarks>Some <see cref="T:UIKit.UIBarButtonItemStyle" /> values display the title on the button while others display an image.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIBarButtonSystemItem systemItem, Foundation.NSObject target, ObjCRuntime.Selector action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(valuetype UIKit.UIBarButtonSystemItem systemItem, class Foundation.NSObject target, class ObjCRuntime.Selector action) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIBarButtonSystemItem,Foundation.NSObject,ObjCRuntime.Selector)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIBarButtonSystemItem * Foundation.NSObject * ObjCRuntime.Selector -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (systemItem, target, action)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithBarButtonSystemItem:target:action:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="systemItem" Type="UIKit.UIBarButtonSystemItem" />
<Parameter Name="target" Type="Foundation.NSObject" />
<Parameter Name="action" Type="ObjCRuntime.Selector" />
</Parameters>
<Docs>
<param name="systemItem">The <see cref="T:UIKit.UIBarButtonSystemItem" /> used to create the button.</param>
<param name="target">
<para>An NSObject that will receive the action message.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="action">
<para>The action that will be sent to the object specified as the target.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<summary>Constructor that allows a system item along with a target-action pair to be specified.</summary>
<remarks>A target and action are an Objective-C mechanism for allowing a method in some object, the target, to be called for some action. Objective-C uses message sending, where the message includes a selector that equates to the name of the method to call. This is basically another way of handling the button being pressed.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIImage image, UIKit.UIBarButtonItemStyle style, EventHandler handler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class UIKit.UIImage image, valuetype UIKit.UIBarButtonItemStyle style, class System.EventHandler handler) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIImage,UIKit.UIBarButtonItemStyle,System.EventHandler)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIImage * UIKit.UIBarButtonItemStyle * EventHandler -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (image, style, handler)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Parameters>
<Parameter Name="image" Type="UIKit.UIImage" />
<Parameter Name="style" Type="UIKit.UIBarButtonItemStyle" />
<Parameter Name="handler" Type="System.EventHandler" />
</Parameters>
<Docs>
<param name="image">Image to be used in the button. If it is too large, the image is scaled to fit.</param>
<param name="style">A style value defined in <see cref="T:UIKit.UIBarButtonItemStyle" />.</param>
<param name="handler">The event handler to be called when the button is pressed.</param>
<summary>Constructor that allows a custom image, style and evnet handler to be specied when the button is created.</summary>
<remarks>Alpha values from the source image, ignoring opaque values, are used to create the image that appears on the button.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (string title, UIKit.UIBarButtonItemStyle style, Foundation.NSObject target, ObjCRuntime.Selector action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string title, valuetype UIKit.UIBarButtonItemStyle style, class Foundation.NSObject target, class ObjCRuntime.Selector action) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(System.String,UIKit.UIBarButtonItemStyle,Foundation.NSObject,ObjCRuntime.Selector)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : string * UIKit.UIBarButtonItemStyle * Foundation.NSObject * ObjCRuntime.Selector -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (title, style, target, action)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithTitle:style:target:action:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="title" Type="System.String" />
<Parameter Name="style" Type="UIKit.UIBarButtonItemStyle" />
<Parameter Name="target" Type="Foundation.NSObject" />
<Parameter Name="action" Type="ObjCRuntime.Selector" />
</Parameters>
<Docs>
<param name="title">
<para>String value used to display the title of the button.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="style">A style value defined in <see cref="T:UIKit.UIBarButtonItemStyle" />.</param>
<param name="target">
<para>An NSObject that will receive the action message.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="action">
<para>The action that will be sent to the object specified as the target.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<summary>Constructor that allows specifying a title and style for a UIBarButtonItem along with an Objective-C style target-action pair.</summary>
<remarks>A target and action are an Objective-C mechanism for allowing a method in some object, the target, to be called for some action. Objective-C uses message sending, where the message includes a selector that equates to the name of the method to call. This is basically another way of handling the button being pressed.</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIImage image, UIKit.UIBarButtonItemStyle style, Foundation.NSObject target, ObjCRuntime.Selector action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class UIKit.UIImage image, valuetype UIKit.UIBarButtonItemStyle style, class Foundation.NSObject target, class ObjCRuntime.Selector action) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIImage,UIKit.UIBarButtonItemStyle,Foundation.NSObject,ObjCRuntime.Selector)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIImage * UIKit.UIBarButtonItemStyle * Foundation.NSObject * ObjCRuntime.Selector -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (image, style, target, action)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithImage:style:target:action:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="image" Type="UIKit.UIImage" />
<Parameter Name="style" Type="UIKit.UIBarButtonItemStyle" />
<Parameter Name="target" Type="Foundation.NSObject" />
<Parameter Name="action" Type="ObjCRuntime.Selector" />
</Parameters>
<Docs>
<param name="image">
<para>Image to be used in the button. If it is too large, the image is scaled to fit.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="style">A style value defined in <see cref="T:UIKit.UIBarButtonItemStyle" />.</param>
<param name="target">
<para>An NSObject that will receive the action message.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="action">
<para>The action that will be sent to the object specified as the target.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<summary>Constructor that allows an image and style to be specified, along with a target-action pair.</summary>
<remarks>
<para>Alpha values from the source image, ignoring opaque values, are used to create the image that appears on the button.</para>
<para>A target and action are an Objective-C mechanism for allowing a method in some object, the target, to be called for some action. Objective-C uses message sending, where the message includes a selector that equates to the name of the method to call. This is basically another way of handling the button being pressed.</para>
</remarks>
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public UIBarButtonItem (UIKit.UIImage image, UIKit.UIImage landscapeImagePhone, UIKit.UIBarButtonItemStyle style, Foundation.NSObject target, ObjCRuntime.Selector action);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class UIKit.UIImage image, class UIKit.UIImage landscapeImagePhone, valuetype UIKit.UIBarButtonItemStyle style, class Foundation.NSObject target, class ObjCRuntime.Selector action) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.#ctor(UIKit.UIImage,UIKit.UIImage,UIKit.UIBarButtonItemStyle,Foundation.NSObject,ObjCRuntime.Selector)" />
<MemberSignature Language="F#" Value="new UIKit.UIBarButtonItem : UIKit.UIImage * UIKit.UIImage * UIKit.UIBarButtonItemStyle * Foundation.NSObject * ObjCRuntime.Selector -> UIKit.UIBarButtonItem" Usage="new UIKit.UIBarButtonItem (image, landscapeImagePhone, style, target, action)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("initWithImage:landscapeImagePhone:style:target:action:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="image" Type="UIKit.UIImage" />
<Parameter Name="landscapeImagePhone" Type="UIKit.UIImage" />
<Parameter Name="style" Type="UIKit.UIBarButtonItemStyle" />
<Parameter Name="target" Type="Foundation.NSObject" />
<Parameter Name="action" Type="ObjCRuntime.Selector" />
</Parameters>
<Docs>
<param name="image">
<para>Image to be used in the button. If it is too large, the image is scaled to fit.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="landscapeImagePhone">
<para>The landscape image to use.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="style">A style value defined in <see cref="T:UIKit.UIBarButtonItemStyle" />.</param>
<param name="target">
<para>An NSObject that will receive the action message.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<param name="action">
<para>The action that will be sent to the object specified as the target.</para>
<para tool="nullallowed">This parameter can be <see langword="null" />.</para>
</param>
<summary>Constructor that allows specifying separate images for landscape and portrait.</summary>
<remarks>
<para>The landscape image will be used when the <see cref="T:UIKit.UIUserInterfaceIdiom" /> is Phone.</para>
<para>A target and action are an Objective-C mechanism for allowing a method in some object, the target, to be called for some action. Objective-C uses message sending, where the message includes a selector that equates to the name of the method to call. This is basically another way of handling the button being pressed.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Action">
<MemberSignature Language="C#" Value="public virtual ObjCRuntime.Selector Action { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class ObjCRuntime.Selector Action" />
<MemberSignature Language="DocId" Value="P:UIKit.UIBarButtonItem.Action" />
<MemberSignature Language="F#" Value="member this.Action : ObjCRuntime.Selector with get, set" Usage="UIKit.UIBarButtonItem.Action" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("action")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setAction:")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>ObjCRuntime.Selector</ReturnType>
</ReturnValue>
<Docs>
<summary>The action sent to the object specified as the target.</summary>
<value>
<para>
</para>
<para tool="nullallowed">This value can be <see langword="null" />.</para>
</value>
<remarks>A target and action are an Objective-C mechanism for allowing a method in some object, the target, to be called for some action. Objective-C uses message sending, where the message includes a selector that equates to the name of the method to call. This is basically another way of handling the button being pressed.</remarks>
</Docs>
</Member>
<Member MemberName="Appearance">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance Appearance { get; }" />
<MemberSignature Language="ILAsm" Value=".property class UIKit.UIBarButtonItem/UIBarButtonItemAppearance Appearance" />
<MemberSignature Language="DocId" Value="P:UIKit.UIBarButtonItem.Appearance" />
<MemberSignature Language="F#" Value="member this.Appearance : UIKit.UIBarButtonItem.UIBarButtonItemAppearance" Usage="UIKit.UIBarButtonItem.Appearance" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<Docs>
<summary>Strongly-typed property that returns the UIAppearance class for this class.</summary>
<value>
</value>
<remarks>
<para>Setting any appearance properties on this instance will affect the appearance of all instances of UIBarButtonItem.</para>
<para>If developers want to control the appearance of subclasses of UIBarButtonItem, they should use the <see cref="M:UIKit.UIBarButtonItem.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" /> method.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="AppearanceWhenContainedIn">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance AppearanceWhenContainedIn (params Type[] containers);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIBarButtonItem/UIBarButtonItemAppearance AppearanceWhenContainedIn(class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.AppearanceWhenContainedIn(System.Type[])" />
<MemberSignature Language="F#" Value="static member AppearanceWhenContainedIn : Type[] -> UIKit.UIBarButtonItem.UIBarButtonItemAppearance" Usage="UIKit.UIBarButtonItem.AppearanceWhenContainedIn containers" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="containers" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="containers">List of types that developers want to have as the containers to apply this particular appearance</param>
<summary>Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.</summary>
<returns>The appearance proxy object that developers can use to set properties when the given container hierarchy is active</returns>
<remarks>
<para>The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of UIBarButtonItem when those instances are contained in the hierarchy specified by the <paramref name="containers" /> parameter.</para>
<para>If developers want to control the appearance of subclasses of UIBarButtonItem, they should use the <see cref="M:UIKit.UIBarButtonItem.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" /> method.</para>
<para>The following example shows how the AppearanceWhenContainedIn method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var mySliders = UISlider.AppearanceWhenContainedIn (typeof (UINavigationBar), typeof (UIPopoverController));
mySliders.TintColor = UIColor.Red;
]]></code>
</example>
<para>For more information, see the documentation for the <see cref="T:UIKit.UIAppearance" /> class.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ButtonGroup">
<MemberSignature Language="C#" Value="public virtual UIKit.UIBarButtonItemGroup ButtonGroup { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class UIKit.UIBarButtonItemGroup ButtonGroup" />
<MemberSignature Language="DocId" Value="P:UIKit.UIBarButtonItem.ButtonGroup" />
<MemberSignature Language="F#" Value="member this.ButtonGroup : UIKit.UIBarButtonItemGroup" Usage="UIKit.UIBarButtonItem.ButtonGroup" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("buttonGroup", ObjCRuntime.ArgumentSemantic.Weak)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItemGroup</ReturnType>
</ReturnValue>
<Docs>
<summary>The <see cref="T:UIKit.UIBarButtonItemGroup" />, if any, to which this <see cref="T:UIKit.UIBarButtonItem" /> belongs.</summary>
<value>
<para>(More documentation for this node is coming)</para>
<para tool="nullallowed">This value can be <see langword="null" />.</para>
</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ClassHandle">
<MemberSignature Language="C#" Value="public override IntPtr ClassHandle { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ClassHandle" />
<MemberSignature Language="DocId" Value="P:UIKit.UIBarButtonItem.ClassHandle" />
<MemberSignature Language="F#" Value="member this.ClassHandle : nativeint" Usage="UIKit.UIBarButtonItem.ClassHandle" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>The handle for this class.</summary>
<value>The pointer to the Objective-C class.</value>
<remarks>Each Xamarin.iOS class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.</remarks>
</Docs>
</Member>
<Member MemberName="Clicked">
<MemberSignature Language="C#" Value="public event EventHandler Clicked;" />
<MemberSignature Language="ILAsm" Value=".event class System.EventHandler Clicked" />
<MemberSignature Language="DocId" Value="E:UIKit.UIBarButtonItem.Clicked" />
<MemberSignature Language="F#" Value="member this.Clicked : EventHandler " Usage="member this.Clicked : System.EventHandler " />
<MemberType>Event</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.EventHandler</ReturnType>
</ReturnValue>
<Docs>
<summary>This event is raised when the user clicks/taps on this UIBarButtonItem.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="CustomView">
<MemberSignature Language="C#" Value="public virtual UIKit.UIView CustomView { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance class UIKit.UIView CustomView" />
<MemberSignature Language="DocId" Value="P:UIKit.UIBarButtonItem.CustomView" />
<MemberSignature Language="F#" Value="member this.CustomView : UIKit.UIView with get, set" Usage="UIKit.UIBarButtonItem.CustomView" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("customView", ObjCRuntime.ArgumentSemantic.Strong)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setCustomView:", ObjCRuntime.ArgumentSemantic.Strong)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>UIKit.UIView</ReturnType>
</ReturnValue>
<Docs>
<summary>A custom view used to represent the UIBarButtonItem</summary>
<value>
<para>
</para>
<para tool="nullallowed">This value can be <see langword="null" />.</para>
</value>
<remarks>The custom view allows an arbitray <see cref="T:UIKit.UIView" /> to be used for the UIBarButtonItem.</remarks>
</Docs>
</Member>
<Member MemberName="Dispose">
<MemberSignature Language="C#" Value="protected override void Dispose (bool disposing);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig virtual instance void Dispose(bool disposing) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.Dispose(System.Boolean)" />
<MemberSignature Language="F#" Value="override this.Dispose : bool -> unit" Usage="uIBarButtonItem.Dispose disposing" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="disposing" Type="System.Boolean" />
</Parameters>
<Docs>
<param name="disposing">
<para>If set to <see langword="true" />, the method is invoked directly and will dispose manage and unmanaged resources; If set to <see langword="false" /> the method is being called by the garbage collector finalizer and should only release unmanaged resources.</para>
</param>
<summary>Releases the resources used by the UIBarButtonItem object.</summary>
<remarks>
<para>This Dispose method releases the resources used by the UIBarButtonItem class.</para>
<para>This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposing <paramref name="disposing" /> is set to <see langword="true" /> and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to <see langword="false" />. </para>
<para>Calling the Dispose method when the application is finished using the UIBarButtonItem ensures that all external resources used by this managed object are released as soon as possible. Once developers have invoked the Dispose method, the object is no longer useful and developers should no longer make any calls to it.</para>
<para> For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at https://msdn.microsoft.com/en-us/library/fs2xkftw.aspx</para>
</remarks>
</Docs>
</Member>
<Member MemberName="Enabled">
<MemberSignature Language="C#" Value="public override bool Enabled { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Enabled" />
<MemberSignature Language="DocId" Value="P:UIKit.UIBarButtonItem.Enabled" />
<MemberSignature Language="F#" Value="member this.Enabled : bool with get, set" Usage="UIKit.UIBarButtonItem.Enabled" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
<Attribute>
<AttributeName>get: Foundation.Export("isEnabled")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>set: Foundation.Export("setEnabled:")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Allows control over whether a UIBarButtonItem is enabled or disabled.</summary>
<value>True if the UIBarButtonItem is enabled. False if it is disabled.</value>
<remarks>If a UIBarButtonItem is enabled, it can be interacted with. If it is disabled, it still appears, but cannot be interacted with.</remarks>
</Docs>
</Member>
<Member MemberName="EncodeTo">
<MemberSignature Language="C#" Value="public virtual void EncodeTo (Foundation.NSCoder encoder);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void EncodeTo(class Foundation.NSCoder encoder) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.EncodeTo(Foundation.NSCoder)" />
<MemberSignature Language="F#" Value="override this.EncodeTo : Foundation.NSCoder -> unit" Usage="uIBarButtonItem.EncodeTo encoder" />
<MemberType>Method</MemberType>
<Implements>
<InterfaceMember>M:Foundation.INSCoding.EncodeTo(Foundation.NSCoder)</InterfaceMember>
</Implements>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName>Foundation.Export("encodeWithCoder:")</AttributeName>
</Attribute>
<Attribute>
<AttributeName>ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="encoder" Type="Foundation.NSCoder" />
</Parameters>
<Docs>
<param name="encoder">The encoder object where the state of the object will be stored</param>
<summary>Encodes the state of the object on the provided encoder</summary>
<remarks>
<para>This method is part of the <see cref="T:Foundation.NSCoding" /> protocol and is used by applications to preserve the state of the object into an archive.</para>
<para>Users will typically create a <see cref="T:Foundation.NSKeyedArchiver" /> and then invoke the <see cref="M:Foundation.NSKeyedArchiver.ArchiveRootObjectToFile(Foundation.NSObject,System.String)" /> which will call into this method</para>
<para>If developers want to allow their object to be archived, they should override this method and store their state in using the provided <paramref name="encoder" /> parameter. In addition, developers should also implement a constructor that takes an NSCoder argument and is exported with [Export ("initWithCoder:")]</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[public void override EncodeTo (NSCoder coder){
coder.Encode (1, key: "version");
coder.Encode (userName, key: "userName");
coder.Encode (hostName, key: "hostName");]]></code>
</example>
</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance GetAppearance (UIKit.UITraitCollection traits);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIBarButtonItem/UIBarButtonItemAppearance GetAppearance(class UIKit.UITraitCollection traits) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.GetAppearance(UIKit.UITraitCollection)" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection -> UIKit.UIBarButtonItem.UIBarButtonItemAppearance" Usage="UIKit.UIBarButtonItem.GetAppearance traits" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
</Parameters>
<Docs>
<param name="traits">To be added.</param>
<summary>Returns an appearance proxy for the specified <paramref name="traits" />.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance GetAppearance (UIKit.UITraitCollection traits, params Type[] containers);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIBarButtonItem/UIBarButtonItemAppearance GetAppearance(class UIKit.UITraitCollection traits, class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.GetAppearance(UIKit.UITraitCollection,System.Type[])" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection * Type[] -> UIKit.UIBarButtonItem.UIBarButtonItemAppearance" Usage="UIKit.UIBarButtonItem.GetAppearance (traits, containers)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
<Parameter Name="containers" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<param name="traits">To be added.</param>
<param name="containers">To be added.</param>
<summary>Returns an appearance proxy for the specified <paramref name="traits" /> when found in the <paramref name="containers" /> containment hierarchy.</summary>
<returns>To be added.</returns>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance<T>">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance GetAppearance<T> () where T : UIKit.UIBarButtonItem;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIBarButtonItem/UIBarButtonItemAppearance GetAppearance<(class UIKit.UIBarButtonItem) T>() cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.GetAppearance``1" />
<MemberSignature Language="F#" Value="static member GetAppearance : unit -> UIKit.UIBarButtonItem.UIBarButtonItemAppearance (requires 'T :> UIKit.UIBarButtonItem)" Usage="UIKit.UIBarButtonItem.GetAppearance " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T" />
</TypeParameters>
<Parameters />
<Docs>
<typeparam name="T">The type for which the UIAppearance proxy must be returned. This is a subclass of UIBarButtonItem.</typeparam>
<summary>Obtains the appearance proxy <see cref="T:UIKit.UIBarButtonItem.UIBarButtonItemAppearance" /> for the subclass of UIBarButtonItem.</summary>
<returns>
<para>appearance proxy object for the specified type.</para>
</returns>
<remarks>
<para>Setting any appearance properties on the returned object will affect the appearance of all classes and subclasses of the type parameter.</para>
<para>Unlike the <see cref="P:UIKit.UIBarButtonItem.Appearance" /> property, or the <see cref="M:UIKit.UIBarButtonItem.AppearanceWhenContainedIn(System.Type[])" /> method which only work on instances of this particular class, the proxies returned by GetAppearance can be used to change the style of subclasses.</para>
<para>The following example shows how the GetAppearance method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var myTheme = UIBarButtonItem.GetAppearance<MyUIBarButtonItemSubclass> ();
myTheme.TintColor = UIColor.Red;
]]></code>
</example>
<para>For more information, see the documentation for the <see cref="T:UIKit.UIAppearance" /> class.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance<T>">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance GetAppearance<T> (UIKit.UITraitCollection traits) where T : UIKit.UIBarButtonItem;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIBarButtonItem/UIBarButtonItemAppearance GetAppearance<(class UIKit.UIBarButtonItem) T>(class UIKit.UITraitCollection traits) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.GetAppearance``1(UIKit.UITraitCollection)" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection -> UIKit.UIBarButtonItem.UIBarButtonItemAppearance (requires 'T :> UIKit.UIBarButtonItem)" Usage="UIKit.UIBarButtonItem.GetAppearance traits" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<BaseTypeName>UIKit.UIBarButtonItem</BaseTypeName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
</Parameters>
<Docs>
<typeparam name="T">The type for which the UIAppearance proxy must be returned. This is a subclass of UIBarButtonItem.</typeparam>
<param name="traits">Trait collection to match.</param>
<summary>Obtains the appearance proxy <see cref="T:UIKit.UIBarButtonItem.UIBarButtonItemAppearance" /> for the subclass of UIBarButtonItem.</summary>
<returns>
<para>appearance proxy object for the specified type.</para>
</returns>
<remarks>
<para>The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of UIBarButtonItem.</para>
<para>Unlike the <see cref="P:UIKit.UIBarButtonItem.Appearance" /> property, or the <see cref="M:UIKit.UIBarButtonItem.AppearanceWhenContainedIn(System.Type[])" /> method which only work on instances of this particular class, the proxies returned by GetAppearance can be used to change the style of subclasses.</para>
<para>The following example shows how the GetAppearance method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var myTheme = UIBarButtonItem.GetAppearance<MyUIBarButtonItemSubclass> (myTraits, );
myTheme.TintColor = UIColor.Red;
]]></code>
</example>
<para>For more information, see the documentation for the <see cref="T:UIKit.UIAppearance" /> class.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetAppearance<T>">
<MemberSignature Language="C#" Value="public static UIKit.UIBarButtonItem.UIBarButtonItemAppearance GetAppearance<T> (UIKit.UITraitCollection traits, params Type[] containers) where T : UIKit.UIBarButtonItem;" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class UIKit.UIBarButtonItem/UIBarButtonItemAppearance GetAppearance<(class UIKit.UIBarButtonItem) T>(class UIKit.UITraitCollection traits, class System.Type[] containers) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.GetAppearance``1(UIKit.UITraitCollection,System.Type[])" />
<MemberSignature Language="F#" Value="static member GetAppearance : UIKit.UITraitCollection * Type[] -> UIKit.UIBarButtonItem.UIBarButtonItemAppearance (requires 'T :> UIKit.UIBarButtonItem)" Usage="UIKit.UIBarButtonItem.GetAppearance (traits, containers)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<ReturnValue>
<ReturnType>UIKit.UIBarButtonItem+UIBarButtonItemAppearance</ReturnType>
</ReturnValue>
<TypeParameters>
<TypeParameter Name="T">
<Constraints>
<BaseTypeName>UIKit.UIBarButtonItem</BaseTypeName>
</Constraints>
</TypeParameter>
</TypeParameters>
<Parameters>
<Parameter Name="traits" Type="UIKit.UITraitCollection" />
<Parameter Name="containers" Type="System.Type[]">
<Attributes>
<Attribute>
<AttributeName>System.ParamArray</AttributeName>
</Attribute>
</Attributes>
</Parameter>
</Parameters>
<Docs>
<typeparam name="T">The type for which the UIAppearance proxy must be returned. This is a subclass of UIBarButtonItem.</typeparam>
<param name="traits">Trait collection to match.</param>
<param name="containers">List of types that the developer wishes to have as the containers to apply this particular appearance.</param>
<summary>Obtains the appearance proxy <see cref="T:UIKit.UIBarButtonItem.UIBarButtonItemAppearance" /> for the subclass of UIBarButtonItem that has the specified trait collection when the view is hosted in the specified hierarchy.</summary>
<returns>
<para>appearance proxy object for the specified type.</para>
</returns>
<remarks>
<para>The returned object represents the UIAppearance proxy where developers can set appearance properties for instances of UIBarButtonItem that has the specified trait collection when the view is hosted in the specified hierarchy when those instances are contained in the hierarchy specified by the <paramref name="containers" /> parameter.</para>
<para>Unlike the <see cref="P:UIKit.UIBarButtonItem.Appearance" /> property, or the <see cref="M:UIKit.UIBarButtonItem.AppearanceWhenContainedIn(System.Type[])" /> method which only work on instances of this particular class, the proxies returned by GetAppearance can be used to change the style of subclasses.</para>
<para>The following example shows how the GetAppearance method works</para>
<example>
<code lang="csharp lang-csharp"><![CDATA[
var myTheme = UIBarButtonItem.GetAppearance<MyUIBarButtonItemSubclass> (myTraits, typeof (UINavigationBar), typeof (UIPopoverController));
myTheme.TintColor = UIColor.Red;
]]></code>
</example>
<para>For more information, see the documentation for the <see cref="T:UIKit.UIAppearance" /> class.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="GetBackButtonBackgroundImage">
<MemberSignature Language="C#" Value="public virtual UIKit.UIImage GetBackButtonBackgroundImage (UIKit.UIControlState forState, UIKit.UIBarMetrics barMetrics);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class UIKit.UIImage GetBackButtonBackgroundImage(valuetype UIKit.UIControlState forState, valuetype UIKit.UIBarMetrics barMetrics) cil managed" />
<MemberSignature Language="DocId" Value="M:UIKit.UIBarButtonItem.GetBackButtonBackgroundImage(UIKit.UIControlState,UIKit.UIBarMetrics)" />
<MemberSignature Language="F#" Value="abstract member GetBackButtonBackgroundImage : UIKit.UIControlState * UIKit.UIBarMetrics -> UIKit.UIImage
override this.GetBackButtonBackgroundImage : UIKit.UIControlState * UIKit.UIBarMetrics -> UIKit.UIImage" Usage="uIBarButtonItem.GetBackButtonBackgroundImage (forState, barMetrics)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
<AssemblyName>Xamarin.iOS</AssemblyName>
</AssemblyInfo>
<Attributes>
<Attribute>