Skip to content

Commit

Permalink
Code update to use fully qualified name.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Sep 23, 2019
1 parent 8884b73 commit 878b153
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/xamarin-forms/user-interface/visual/material-visual.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ Functionally, the material renderers are no different to the default renderers.

After installing the [Xamarin.Forms.Visual.Material](https://www.nuget.org/packages/Xamarin.Forms.Visual.Material/) NuGet package, the material renderers must be initialized in each platform project.

On iOS, this should occur in **AppDelegate.cs** by invoking the `FormsMaterial.Init` method *after* the `Xamarin.Forms.Forms.Init` method:
On iOS, this should occur in **AppDelegate.cs** by invoking the `Xamarin.Forms.FormsMaterial.Init` method *after* the `Xamarin.Forms.Forms.Init` method:

```csharp
global::Xamarin.Forms.Forms.Init();
FormsMaterial.Init();
global::Xamarin.Forms.FormsMaterial.Init();
```

On Android, this should occur in **MainActivity.cs** by invoking the `FormsMaterial.Init` method *after* the `Xamarin.Forms.Forms.Init` method:
On Android, this should occur in **MainActivity.cs** by invoking the `Xamarin.Forms.FormsMaterial.Init` method *after* the `Xamarin.Forms.Forms.Init` method:

```csharp
global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
FormsMaterial.Init(this, savedInstanceState);
global::Xamarin.Forms.FormsMaterial.Init(this, savedInstanceState);
```

## Consume material renderers
Expand Down

0 comments on commit 878b153

Please sign in to comment.