Feature Request : Dialog Alignment
See original GitHub issueI use DialogHost in my SukiUI library to show dialogs, and by the way thank you for you work 👍 Recently I made some Mobile Controls which requires to show a dialog at the bottom :
https://github.com/kikipoulet/SukiUI/wiki/3.-Mobile-Controls#mobile-picker
To make that I used some very ugly code in a very ugly fork to create a new parameter and simply show the dialog at bottom with this code change :
var verticalMargin = (parameters.AnchorRectangle.Height - parameters.Size.Height) / 1.05;
in the DialogPopupPositioner class. The problem is that it messed up all my dependencies with avalonia 0.10 to 0.11 migration, and the only solution for me was to come at the DialogHost 0.6.0 nuget package, which basically saved me 👍
So … could it be possible to add a “VerticalAlignment” parameter in the dialoghost control ? 😃
Issue Analytics
- State:
- Created 10 months ago
- Comments:10 (4 by maintainers)
Top GitHub Comments
It is marked as preview version now, cuz i want to implement some features.
Hello, @kikipoulet
It’s quite a complex task, as far as I can see. Because, for example, your dialog is at least not straight down, it has a vertical indent from the bottom. I’ll think about how to implement it better.
For now, I’m thinking about the idea of allowing you to create your own Positioner