如何在Windows Phone 10中增加字体大小时使按钮自动展开 [英] how to make button automatically expand when the font size increases in Windows phone 10

查看:80
本文介绍了如何在Windows Phone 10中增加字体大小时使按钮自动展开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将按钮放在可变大小的换行网格中,但是当字体大小增加时,该按钮不会自动展开。任何人都可以建议 这个
的解决方案

I placed the button inside variable sized wrap grid but when the font size increases the button is not automatically  expanding. Can anybody please suggest  the solution for this

这是代码,

 < Grid>

        < StackPanel>

        < VariableSizedWrapGrid Orientation =" Horizo​​ntal" Width =" Auto">

            < Button Content =" Firstbutton"字号= QUOT; 20" MinWidth =" 150" />

            < Button Content =" Second Button" 字号= QUOT; 50"高度= QUOT;汽车"宽度= QUOT;汽车" /> ---->此按钮自动不展开

            <按钮内容="第三按钮" />

            < Button Content =" third Button" />
$
            < Button Content =" third Button" />
$
           

        < / VariableSizedWrapGrid>

        < / StackPanel>

    < / Grid> 

 <Grid>
        <StackPanel>
        <VariableSizedWrapGrid Orientation="Horizontal" Width="Auto">
            <Button Content="Firstbutton " FontSize="20" MinWidth="150"/>
            <Button Content="Second Button"  FontSize="50" Height="auto" Width="auto" />----> this button Automatically not Expanding
            <Button Content="third Button"/>
            <Button Content="third Button" />
            <Button Content="third Button" />
           
        </VariableSizedWrapGrid>
        </StackPanel>
    </Grid> 

m venkatasuresh

m venkatasuresh

推荐答案

嗨!

您是否尝试过:填充?


这篇关于如何在Windows Phone 10中增加字体大小时使按钮自动展开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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