DialogService: DialogOptions big VS small screen

Without passing DialogOptions the DialogService adjusts to the screen size of the device. On big screens it uses a specific size and on small screens it uses 100%.

Now I want to consume 50% on big screens with the following:

new DialogOptions(){ Width = "50%", Left = "25%" }

But at the same time I want 100% on small screens. Currently the passed DialogOptions are always used for all sizes (which works very wrong on the iPhone by the way).

Proposal: Extend DialogService. This can be achieved by either automatically supressing the passed With, Left etc on small screens OR by passing additional parameters like WidthSmall, LeftSmall etc to use on small devices.

You can apply various settings conditionally to your application depending on user agent for example:

2 Likes