无法在 UWP 中设置教学提示的宽高属性 [英] unable to set width height property of Teaching tip in UWP

查看:22
本文介绍了无法在 UWP 中设置教学提示的宽高属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置宽度,即 UWP 的教学提示类的高度.但它不起作用.任何人都知道发生了什么.这会有所帮助.

Hi I am trying set width, the height of TeachingTip Class of UWP. But it is not working. Anyone know what is going on. That will help.

推荐答案

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

unable to set width height property of Teaching tip in UWP

TeachingTip 控件会根据内容大小自动设置大小,如果要修改请在 Content 属性中添加元素并设置相应大小的元素,请注意,TeachingTip 有大小限制,更多请参考 这个 .

TeachingTip control will automatically set the size base on the content size, if you want to modify it please add element into the Content property and set element with pertinent size, and please note TeachingTip has size limit for more please refer 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>

这篇关于无法在 UWP 中设置教学提示的宽高属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆