Skip to content

How to set up the dialog position? #37

Answered by SKProCH
michaelwv asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, @michaelwv

You can set PopupPositioner. There is a two predefined positioners - CenteredDialogPopupPositioner and AlignmentDialogPopupPositioner. You can use a last one to achieve the result:

<dialogHostAvalonia:DialogHost ...>
  <dialogHostAvalonia:DialogHost.PopupPositioner>
    <positioners:AlignmentDialogPopupPositioner HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
  </dialogHostAvalonia:DialogHost.PopupPositioner>

Or you can implement IDialogPopupPositioner by yourself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by SKProCH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #36 on August 20, 2023 17:58.