uwp

How to remove padding from content dialog?

做~自己de王妃 提交于 2020-08-24 10:19:09
问题 How to remove the padding/margin in ContentDialog? This or other did not help me. I tried with padding & margin in both ContentDialog's tag and Root Grid as below. <ContentDialog... Padding="0" Margin="0"> <Grid Background="Bisque" Width="500" Height="400" Padding="0" Margin="0"> <Button Content="X" Height="40" Width="40" VerticalAlignment="Top" HorizontalAlignment="Right"></Button> </Grid> with no luck. But, In Live Visual Tree, I found a Grid(DialogSpace) occupying this area. But how to