-
Currently I can define height and width of the Dialog's content, is there any way to set that have a dynamic height and width, e.g. it always has 20 margin, so when the dialog is shown and when user resize the windows, the content of the dialog can be resize with it. I've tried to set the margin of the content, the DialogMargin in dialogHostAvalonia:DialogHost/ and the padding but it has no effect. Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello, @bearyung Seems like this is can be dome via positioners. This is a custom classes which can arrange dialoghost popup in some ways. E.g.: <dialogHostAvalonia:DialogHost>
...
<dialogHostAvalonia:DialogHost.PopupPositioner>
<positioners:AlignmentDialogPopupPositioner HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="16"/>
</dialogHostAvalonia:DialogHost.PopupPositioner>
</dialogHostAvalonia:DialogHost> Would fit you expectations. |
Beta Was this translation helpful? Give feedback.
Hello, @bearyung
Seems like this is can be dome via positioners. This is a custom classes which can arrange dialoghost popup in some ways. E.g.:
Would fit you expectations.