Clases base y controles nativos del representadorRenderer Base Classes and Native Controls

Todos los controles de Xamarin.Forms tienen un representador que las acompaña para cada plataforma y que crea una instancia de un control nativo. En este artículo se enumeran las clases de representador y control nativo que implementan cada página, diseño, vista y celda de Xamarin.Forms.Every Xamarin.Forms control has an accompanying renderer for each platform that creates an instance of a native control. This article lists the renderer and native control classes that implement each Xamarin.Forms page, layout, view, and cell.

A excepción de la clase MapRenderer, los representadores específicos de la plataforma se pueden encontrar en los espacios de nombres siguientes:With the exception of the MapRenderer class, the platform-specific renderers can be found in the following namespaces:

  • iOS: Xamarin.Forms.Platform.iOSiOS – Xamarin.Forms.Platform.iOS
  • Android: Xamarin.Forms.Platform.AndroidAndroid – Xamarin.Forms.Platform.Android
  • Android (AppCompat) : Xamarin.Forms.Platform.Android.AppCompatAndroid (AppCompat) – Xamarin.Forms.Platform.Android.AppCompat
  • Android (FastRenderers) - Xamarin.Forms.Platform.Android.FastRenderersAndroid (FastRenderers) - Xamarin.Forms.Platform.Android.FastRenderers
  • Plataforma universal de Windows (UWP) : Xamarin.Forms.Platform.UWPUniversal Windows Platform (UWP) – Xamarin.Forms.Platform.UWP

Para obtener más información sobre los representadores rápidos, consulte Representadores rápidos de Xamarin.Forms.For more information about fast renderers, see Xamarin.Forms Fast Renderers.

La clase MapRenderer se puede encontrar en los espacios de nombres siguientes:The MapRenderer class can be found in the following namespaces:

  • iOS: Xamarin.Forms.Maps.iOSiOS – Xamarin.Forms.Maps.iOS
  • Android: Xamarin.Forms.Maps.AndroidAndroid – Xamarin.Forms.Maps.Android
  • Plataforma universal de Windows (UWP) : Xamarin.Forms.Maps.UWPUniversal Windows Platform (UWP) – Xamarin.Forms.Maps.UWP

Nota

Para obtener información sobre cómo crear representadores personalizados para aplicaciones de Shell, consulte Representadores personalizados de Xamarin.Forms Shell.For information about creating custom renderers for Shell applications, see Xamarin.Forms Shell Custom Renderers.

PáginasPages

En la tabla siguiente se enumeran las clases de representador y control nativo que implementan cada tipo Page de Xamarin.Forms:The following table lists the renderer and native control classes that implement each Xamarin.Forms Page type:

PáginaPage RepresentadorRenderer iOSiOS AndroidAndroid Android (AppCompat)Android (AppCompat) UWPUWP
ContentPage PageRendererPageRenderer UIViewControllerUIViewController ViewGroupViewGroup FrameworkElementFrameworkElement
MasterDetailPage PhoneMasterDetailRenderer (iOS: teléfono), TabletMasterDetailPageRenderer (iOS: tableta), MasterDetailRenderer (Android), MasterDetailPageRenderer (Android AppCompat), MasterDetailPageRenderer (UWP)PhoneMasterDetailRenderer (iOS – Phone), TabletMasterDetailPageRenderer (iOS – Tablet), MasterDetailRenderer (Android), MasterDetailPageRenderer (Android AppCompat), MasterDetailPageRenderer (UWP) UIViewController (teléfono), UISplitViewController (tableta)UIViewController (Phone), UISplitViewController (Tablet) DrawerLayout (v4)DrawerLayout (v4) DrawerLayout (v4)DrawerLayout (v4) FrameworkElement (Control personalizado)FrameworkElement (Custom Control)
NavigationPage NavigationRenderer (iOS y Android), NavigationPageRenderer (AppCompat Android), NavigationPageRenderer (UWP)NavigationRenderer (iOS and Android), NavigationPageRenderer (Android AppCompat), NavigationPageRenderer (UWP) UIToolbarUIToolbar ViewGroupViewGroup ViewGroupViewGroup FrameworkElement (Control personalizado)FrameworkElement (Custom Control)
TabbedPage TabbedRenderer (iOS y Android), TabbedPageRenderer (Android AppCompat), TabbedPageRenderer (UWP)TabbedRenderer (iOS and Android), TabbedPageRenderer (Android AppCompat), TabbedPageRenderer (UWP) UIViewUIView ViewPagerViewPager ViewPagerViewPager FrameworkElement (Pivot)FrameworkElement (Pivot)
TemplatedPage PageRendererPageRenderer UIViewControllerUIViewController ViewGroupViewGroup FrameworkElementFrameworkElement
CarouselPage CarouselPageRendererCarouselPageRenderer UIScrollViewUIScrollView ViewPagerViewPager ViewPagerViewPager FrameworkElement (FlipView)FrameworkElement (FlipView)

DiseñosLayouts

En la tabla siguiente se enumeran las clases de representador y control nativo que implementan cada tipo Layout de Xamarin.Forms:The following table lists the renderer and native control classes that implement each Xamarin.Forms Layout type:

DiseñoLayout RepresentadorRenderer iOSiOS AndroidAndroid Android (AppCompat)Android (AppCompat) UWPUWP
ContentPresenter ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
ContentView ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
FlexLayout ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
Frame FrameRendererFrameRenderer UIViewUIView ViewGroupViewGroup CardViewCardView BordeBorder
ScrollView ScrollViewRendererScrollViewRenderer UIScrollViewUIScrollView ScrollViewScrollView ScrollViewScrollView ScrollViewerScrollViewer
TemplatedView ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
AbsoluteLayout ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
Grid ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
RelativeLayout ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement
StackLayout ViewRendererViewRenderer UIViewUIView VerView VerView FrameworkElementFrameworkElement

VistasViews

En la tabla siguiente se enumeran las clases de representador y control nativo que implementan cada tipo View de Xamarin.Forms:The following table lists the renderer and native control classes that implement each Xamarin.Forms View type:

VistasViews RepresentadorRenderer iOSiOS AndroidAndroid Android (AppCompat)Android (AppCompat) UWPUWP
ActivityIndicator ActivityIndicatorRendererActivityIndicatorRenderer UIActivityIndicatorUIActivityIndicator ProgressBarProgressBar ProgressBarProgressBar
BoxView BoxRenderer (iOS y Android), BoxViewRenderer (UWP)BoxRenderer (iOS and Android), BoxViewRenderer (UWP) UIViewUIView ViewGroupViewGroup RectánguloRectangle
Button ButtonRendererButtonRenderer UIButtonUIButton BotónButton AppCompatButtonAppCompatButton BotónButton
CarouselView CarouselViewRendererCarouselViewRenderer UICollectionViewUICollectionView RecyclerViewRecyclerView ListViewBaseListViewBase
CheckBox CheckBoxRendererCheckBoxRenderer UIButtonUIButton AppCompatCheckBoxAppCompatCheckBox CheckBoxCheckBox
CollectionView CollectionViewRendererCollectionViewRenderer UICollectionViewUICollectionView RecyclerViewRecyclerView ListViewBaseListViewBase
DatePicker DatePickerRendererDatePickerRenderer UITextFieldUITextField EditTextEditText DatePickerDatePicker
Editor EditorRendererEditorRenderer UITextViewUITextView EditTextEditText TextBoxTextBox
Ellipse EllipseRendererEllipseRenderer CALayerCALayer VerView EllipseEllipse
Entry EntryRendererEntryRenderer UITextFieldUITextField EditTextEditText TextBoxTextBox
Image ImageRendererImageRenderer UIImageViewUIImageView ImageViewImageView ImagenImage
ImageButton ImageButtonRendererImageButtonRenderer UIButtonUIButton AppCompatImageButtonAppCompatImageButton BotónButton
IndicatorView IndicatorViewRendererIndicatorViewRenderer UIPageControlUIPageControl LinearLayoutLinearLayout
Label LabelRendererLabelRenderer UILabelUILabel TextViewTextView TextBlockTextBlock
Line LineRendererLineRenderer CALayerCALayer VerView LíneaLine
ListView ListViewRendererListViewRenderer UITableViewUITableView ListViewListView ListViewListView
Map MapRendererMapRenderer MKMapViewMKMapView MapViewMapView MapControlMapControl
MediaElement MediaElementRendererMediaElementRenderer UIViewUIView VideoViewVideoView MediaElementMediaElement
Path PathRendererPathRenderer CALayerCALayer VerView Ruta de accesoPath
Picker PickerRendererPickerRenderer UITextFieldUITextField EditTextEditText EditTextEditText ComboBoxComboBox
Polygon PolygonRendererPolygonRenderer CALayerCALayer VerView PolígonoPolygon
Polyline PolylineRendererPolylineRenderer CALayerCALayer VerView PolilíneaPolyline
ProgressBar ProgressBarRendererProgressBarRenderer UIProgressViewUIProgressView ProgressBarProgressBar ProgressBarProgressBar
RadioButton RadioButtonRendererRadioButtonRenderer UIButtonUIButton AppCompatRadioButtonAppCompatRadioButton RadioButtonRadioButton
Rectangle RectangleRendererRectangleRenderer CALayerCALayer VerView RectánguloRectangle
RefreshView RefreshViewRendererRefreshViewRenderer UIViewUIView SwipeRefreshLayoutSwipeRefreshLayout RefreshContainerRefreshContainer
SearchBar SearchBarRendererSearchBarRenderer UISearchBarUISearchBar SearchViewSearchView AutoSuggestBoxAutoSuggestBox
Slider SliderRendererSliderRenderer UISliderUISlider SeekBarSeekBar SliderSlider
Stepper StepperRendererStepperRenderer UIStepperUIStepper LinearLayoutLinearLayout ControlControl
SwipeView SwipeViewRendererSwipeViewRenderer UIViewUIView VerView SwipeControlSwipeControl
Switch SwitchRendererSwitchRenderer UISwitchUISwitch ModificadorSwitch SwitchCompatSwitchCompat ToggleSwitchToggleSwitch
TableView TableViewRendererTableViewRenderer UITableViewUITableView ListViewListView ListViewListView
TimePicker TimePickerRendererTimePickerRenderer UITextFieldUITextField EditTextEditText TimePickerTimePicker
WebView WkWebViewRenderer (iOS), WebViewRenderer (Android y UWP)WkWebViewRenderer (iOS), WebViewRenderer (Android and UWP) WkWebViewWkWebView WebViewWebView WebViewWebView

Nota

El control Expander se implementa usando un elemento StackLayout con animación.The Expander control is implemented using a StackLayout, with animation. Por lo tanto, no tiene ningún representador de plataforma.Therefore, it does not have any platform renderers.

CeldasCells

En la tabla siguiente se enumeran las clases de representador y control nativo que implementan cada tipo Cell de Xamarin.Forms:The following table lists the renderer and native control classes that implement each Xamarin.Forms Cell type:

CeldasCells RepresentadorRenderer iOSiOS AndroidAndroid UWPUWP
EntryCell EntryCellRendererEntryCellRenderer UITableViewCell con UITextFieldUITableViewCell with a UITextField LinearLayout con TextView y EditTextLinearLayout with a TextView and EditText DataTemplate con un control TextBoxDataTemplate with a TextBox
SwitchCell SwitchCellRendererSwitchCellRenderer UITableViewCell con UISwitchUITableViewCell with a UISwitch ModificadorSwitch DataTemplate con un elemento Grid que contiene controles TextBlock y ToggleSwitchDataTemplate with a Grid containing a TextBlock and ToggleSwitch
TextCell TextCellRendererTextCellRenderer UITableViewCellUITableViewCell LinearLayout con dos objetos TextViewLinearLayout with two TextViews DataTemplate con un elemento StackPanel que contiene dos elementos TextBlockDataTemplate with a StackPanel containing two TextBlocks
ImageCell ImageCellRendererImageCellRenderer UITableViewCell con UIImageUITableViewCell with a UIImage LinearLayout con dos objetos TextView y un objeto ImageViewLinearLayout with two TextViews and an ImageView DataTemplate con un elemento Grid que contiene un control Image y dos TextBlockDataTemplate with a Grid containing an Image and two TextBlocks
ViewCell ViewCellRendererViewCellRenderer UITableViewCellUITableViewCell VerView DataTemplate con un elemento ContentPresenterDataTemplate with a ContentPresenter