From e72b16ba8047a52e8537a0afa3b52ea74fdb2d44 Mon Sep 17 00:00:00 2001 From: David Britch Date: Thu, 8 Aug 2019 10:19:15 +0100 Subject: [PATCH 01/18] Updated code example. --- docs/xamarin-forms/user-interface/visual/create.md | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/docs/xamarin-forms/user-interface/visual/create.md b/docs/xamarin-forms/user-interface/visual/create.md index b01da740d..324ab9841 100644 --- a/docs/xamarin-forms/user-interface/visual/create.md +++ b/docs/xamarin-forms/user-interface/visual/create.md @@ -99,20 +99,23 @@ The `CustomVisual` type can then be registered against the renderer classes, per ## Register the IVisual type -In the platform projects, decorate the renderer classes with the `ExportRendererAttribute`: +In the platform projects, decorate the renderer namespaces with the `ExportRendererAttribute`: ```csharp [assembly: ExportRenderer(typeof(Xamarin.Forms.Button), typeof(CustomButtonRenderer), new[] { typeof(CustomVisual) })] -public class CustomButtonRenderer : ButtonRenderer +namespace VisualDemos.iOS { - protected override void OnElementChanged(ElementChangedEventArgs