Horizontal Alignment on DialogService

Is it possible to choose vertical and horizontal alignment for DialogService? It always opens centered, and I would like to have it open with it touching the right side of the screen.

Hi @mrvictory1999,

You can set the Left and Top position when opening a dialog (via the DialogOptions).

dialogService.Open<DialogPage>("Confirm", null,
new DialogOptions { Width = "700px", Height = "530px", Left = "0px", Top = "200px" }))
1 Like

Thank you. That worked. To force a right align, I used a percent for both Width and Left properties:

dialogService.Open<DialogPage>("Confirm", null,
new DialogOptions { Width = "70%", Height = "100%", Left = "30%" }))