无法在UWP中设置示教提示的宽度-高度属性

无法在UWP中设置示教提示的宽度-高度属性,uwp,windows-community-toolkit,Uwp,Windows Community Toolkit,大家好,我正在尝试设置宽度,UWP教学类的高度。 但它不起作用。任何人都知道发生了什么。那会有帮助的 无法在UWP中设置示教提示的宽度-高度属性 TeachingTip控件将根据内容大小自动设置大小,如果要修改,请将元素添加到content属性中,并设置具有相关大小的元素,请注意TeachingTip有大小限制。有关详细信息,请参阅 你能分享更多关于教学的细节吗?我在uwp平台中找不到它。你好,Nico Zhu请参考此你好,Nico,我访问了给定的链接,指定的最小宽度问题是320,我在我的项目

大家好,我正在尝试设置宽度,UWP教学类的高度。 但它不起作用。任何人都知道发生了什么。那会有帮助的

无法在UWP中设置示教提示的宽度-高度属性

TeachingTip
控件将根据内容大小自动设置大小,如果要修改,请将元素添加到
content
属性中,并设置具有相关大小的元素,请注意TeachingTip有大小限制。有关详细信息,请参阅



你能分享更多关于
教学的细节吗?我在uwp平台中找不到它。你好,Nico Zhu请参考此你好,Nico,我访问了给定的链接,指定的最小宽度问题是320,我在我的项目中有一个场景,我需要动态设置它。那么有没有什么方法可以在页面中覆盖并使用较小的宽度,如10,20等?请尝试将
你的宽度
添加到应用程序的应用程序资源字典中。它很有效,谢谢Nico你救了我一天
<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>