Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich authored Jul 16, 2019
1 parent d9a0fd0 commit fd82210
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,28 @@ public partial class MainPage : ContentPage, IReloadable
</ViewCell>
```

6) **Previewer** properties: if you want to use ```xmlns:d="http://xamarin.com/schemas/2014/forms/design"``` during your work with HotReload, you can achieve it by two approaches
- Global setting. Manage previewer propertis use via **Configuration**. Design properties will be used by default unless you disable them via Xaml.

```csharp
HotReloader.Current.Run(this, new HotReloader.Configuration
{
PreviewerDefaultMode = HotReloader.PreviewerMode.On
});
```

- Local setting. Manage previewer propertis use via **XAML**. You can override default behavior for particular file with following markup:

```xaml
<?xml version="1.0" encoding="UTF-8"?>
<?hotReload preview.on?>
<ContentPage>
...
</ContentPage>
```

Use ```<?hotReload preview.on?>``` to allow design properties and ```<?hotReload preview.off?>``` to forbid them.

# Old Extensions (with mannual IP entering)
If you wish to enter device's IP mannualy, you may use these extensions (Make sure you disabled extensions autoupdate)
https://github.com/AndreiMisiukevich/HotReload/tree/master/old_extension_packages
Expand Down

0 comments on commit fd82210

Please sign in to comment.