【发布时间】:2020-10-06 10:47:26
【问题描述】:
我使用下面的代码来设置 ContentDialog 的宽度
<ContentDialog
x:Class="MyAPP.SettingContentDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Picvac_UWP"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Title="Random Select the number"
PrimaryButtonText="Cancel"
SecondaryButtonText="Ok"
Width="800"
>
但 ContentDialog 的宽度永远不能超过 550 像素
看起来像
Width="800"
不工作。
我也尝试将ContentDialog中Grid的宽度改成550像素以上,ContentDialog的宽度一直是550
欢迎评论
【问题讨论】:
-
这能回答你的问题吗? ContentDialog max width
-
不,它不适合我
-
您是否从我链接的 SO 线程中获得了已接受的答案或最受好评的答案?由于最受好评的答案实际上是此处给出的答案,因此使该线程完全多余。如果你能关闭这个帖子就好了。