uwp - 无法在 UWP 中设置教学提示的宽度高度属性
问题描述
嗨,我正在尝试设置宽度,即 UWP 教学提示类的高度。但它不起作用。任何人都知道发生了什么。这会有所帮助。
解决方案
无法在 UWP 中设置教学提示的宽度高度属性
TeachingTip
控件会根据内容大小自动设置大小,如果要修改它,请在Content
属性中添加元素并设置相应大小的元素,请注意教学提示有大小限制更多请参考this。
<controls:TeachingTip
x:Name="ToggleThemeTeachingTip1"
Title="Change themes without hassle"
Subtitle="It's easier than ever to see control samples in both light and dark theme!"
Target="{x:Bind ThemeButton}"
>
<controls:TeachingTip.IconSource>
<controls:SymbolIconSource Symbol="Refresh" />
</controls:TeachingTip.IconSource>
<controls:TeachingTip.Content>
<StackPanel Height="300">
<TextBlock Text="t's easier than ever to see control samples in both light and dark theme!" TextWrapping="Wrap"/>
</StackPanel>
</controls:TeachingTip.Content>
</controls:TeachingTip>
推荐阅读
- javascript - 获取 JavaScript 对象中所有元素的组合
- swift - 如何从 NSObject 访问 SwiftUI 环境对象?
- amazon-web-services - 如何在 java sdk v2 中向正在运行的 EMR 集群提交新步骤
- vba - Items_ItemAdd(ByVal Item As Object) 未处理同时进入的多个项目
- powershell - 使用 test-path 的结果执行 powershell 命令
- reactjs - React JS 中的简单表单
- firebase - 参数类型“Future”不能分配给参数类型“String”
- python - 有没有办法使使用 bzrlib 工具箱 Python 3 兼容的 Python 2.7 脚本?由于 Python 3 不支持 bzrlib
- go - io.Copy 在 goroutine 中防止阻塞
- git - git diff 显示相同行的差异