<commit_before># Prism.Plugin.PageDialogs

The Page Dialog plugin for [Prims.Forms](4) offers you the ability to quickly and easily add a Page Dialog Service that doesn't rely on the bland dialogs built into Xamarin for each platform. Instead you are able to provide a custom look and feel for each of your projects. 

![Current Build][buildStatus]
[![Build status](https://ci.appveyor.com/api/projects/status/qgxb4lfslse67inq/branch/master?svg=true)](https://ci.appveyor.com/project/danjsiegel/prism-plugin-pagedialogs/branch/master)


| Package | Version |
| ------- | ------- |
| [Prism.Plugin.PageDialogs](1) | [![2]][1] |

## Platform Initialion

This plugin itself requires no platform initialization however you will need to initialize [Rg.Plugin.Popup][3]

## Customized Look & Feel

To make this all work and still provide your custom look and feel you can simply inherit from our custom page dialog service and register it.

```cs
public class MyPageDialogService : CustomPageDialogService
{
     protected override ActionSheetPageBase GetActionSheet( string title, string message, string cancelButton, string destroyButton, string[] otherButtons )
    {
        // return your custom ActionSheetPage as long as it inherits from ActionSheetPageBase
    }

    protected override AlertPageBase GetAlertPage( string title, string message, string acceptButton, string cancelButton )
    {
        // return your custom AlertPage as long as it inherits from AlertPageBase
    }
}
```

In your PrismApplication class

```cs
protected override void RegisterTypes()
{
    Container.Register<IPageDialogService,CustomPageDialogService>();
}
```

[1]: https://www.nuget.org/packages/Prism.Plugin.PageDialogs
[2]: https://img.shields.io/nuget/vpre/Prism.Plugin.PageDialogs.svg
[3]: https://github.com/rotorgames/Rg.Plugins.Popup
[4]: https://github.com/PrismLibrary/Prism

[buildStatus]: https://avantipoint.visualstudio.com/_apis/public/build/definitions/9ae3c52d-a8d5-4184-b4fe-94f6625d7f93/13/badge<commit_msg>update build badge<commit_after># Prism.Plugin.PageDialogs

The Page Dialog plugin for [Prims.Forms](4) offers you the ability to quickly and easily add a Page Dialog Service that doesn't rely on the bland dialogs built into Xamarin for each platform. Instead you are able to provide a custom look and feel for each of your projects. 

[![Build Status](https://dev.azure.com/dansiegel/Prism.Plugins/_apis/build/status/Prism.Plugins.PageDialogs-CI)](https://dev.azure.com/dansiegel/Prism.Plugins/_build/latest?definitionId=30)

| Package | Version |
| ------- | ------- |
| [Prism.Plugin.PageDialogs](1) | [![2]][1] |

## Platform Initialion

This plugin itself requires no platform initialization however you will need to initialize [Rg.Plugin.Popup][3]

## Customized Look & Feel

To make this all work and still provide your custom look and feel you can simply inherit from our custom page dialog service and register it.

```cs
public class MyPageDialogService : CustomPageDialogService
{
     protected override ActionSheetPageBase GetActionSheet( string title, string message, string cancelButton, string destroyButton, string[] otherButtons )
    {
        // return your custom ActionSheetPage as long as it inherits from ActionSheetPageBase
    }

    protected override AlertPageBase GetAlertPage( string title, string message, string acceptButton, string cancelButton )
    {
        // return your custom AlertPage as long as it inherits from AlertPageBase
    }
}
```

In your PrismApplication class

```cs
protected override void RegisterTypes()
{
    Container.Register<IPageDialogService,CustomPageDialogService>();
}
```

[1]: https://www.nuget.org/packages/Prism.Plugin.PageDialogs
[2]: https://img.shields.io/nuget/vpre/Prism.Plugin.PageDialogs.svg
[3]: https://github.com/rotorgames/Rg.Plugins.Popup
[4]: https://github.com/PrismLibrary/Prism
{'fraction_non_alphanumeric': 0.10428497676819824, 'fraction_numerical': 0.011615900877645843, 'mean_word_length': 4.51994301994302, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 13, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3886470', 'n_tokens_mistral': 1142, 'n_tokens_neox': 1100, 'n_words': 349}