我们如何在 Windows Phone 中设置 TextBlock 的背景图像? [英] How do we set background image of TextBlock in Windows Phone?

查看:26
本文介绍了我们如何在 Windows Phone 中设置 TextBlock 的背景图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows Phone 中设置文本块背景时遇到问题.

I am facing problem in setting the background of textblock in Windows Phone.

<TextBlock Text="Forget Password" Height="19" Width="156">

推荐答案

你可以试试这个:

<Grid>
 <Grid.Background>
    <ImageBrush ImageSource="MyImage.jpg" />
 </Grid.Background>
 <TextBlock Text="Forget Password" />
</Grid>

这篇关于我们如何在 Windows Phone 中设置 TextBlock 的背景图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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