AvaloniaUtils / DialogHost.Avalonia

AvaloniaUI control that provides a simple way to display a dialog with information or prompt the user when information is needed
MIT License
228 stars 15 forks source link

AlignmentDialogPopupPositioner margin doesn't work when align top left corner #17

Closed kevin100702 closed 1 year ago

kevin100702 commented 1 year ago
<!-- It's fine -->
<!--<dialogHostAvalonia:DialogHost.PopupPositioner>
    <positioners:AlignmentDialogPopupPositioner VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="20"/>
</dialogHostAvalonia:DialogHost.PopupPositioner>-->

<dialogHostAvalonia:DialogHost.PopupPositioner>
    <positioners:AlignmentDialogPopupPositioner VerticalAlignment="Top" HorizontalAlignment="Left" Margin="20"/>
</dialogHostAvalonia:DialogHost.PopupPositioner>

image

16

The Margin property doesn't work when I try to align the upper left corner, so I forked the latest code and tried it out and found that everything works fine when aligning the small right corner, but not when aligning to the upper left corner. thanks

SKProCH commented 1 year ago

Hello, @kevin100702

You can use 0.7.0-preview2 version, where your problem has been fixed. If not - feel free to reopen issue.