gpt4 book ai didi

c# - 在 UWP 应用程序中更改 Flyout 的高度和宽度

转载 作者:行者123 更新时间:2023-12-05 08:20:16 25 4
gpt4 key购买 nike

我在我的 UWP 应用中使用 Flyout 元素作为:

<Flyout Placement="Full"/>

这会根据需要在应用程序的中心打开弹出窗口。但我无法更改弹出窗口的高度和宽度。如何才能做到这一点?

最佳答案

XAML 相当于已接受的答案。
(注意:OP 发布了一个 Flyout - 而不是 MenuFlyout):

<Flyout>
...
<Flyout.FlyoutPresenterStyle>
<Style TargetType="FlyoutPresenter">
<Setter Property="MinWidth" Value="200" />
<Setter Property="MinHeight" Value="200" />
</Style>
</Flyout.FlyoutPresenterStyle>
...
</Flyout>

关于c# - 在 UWP 应用程序中更改 Flyout 的高度和宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54901764/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com