美文网首页winfrom
WPFTextBlock添加背景图

WPFTextBlock添加背景图

作者: 叫我马小帅 | 来源:发表于2019-03-20 16:33 被阅读0次

很简单的东西

            <TextBlock Margin="10,0,0,0" Name="txtContent"  TextWrapping="Wrap" FontSize="15" Foreground="Black">
                <TextBlock.Background>
                    <ImageBrush ImageSource="../Images/beam/recommend.png" Stretch="UniformToFill" TileMode="None" />
                </TextBlock.Background>
            </TextBlock>

生命不息,代码不止!码农一枚,请多点赞

相关文章

网友评论

    本文标题:WPFTextBlock添加背景图

    本文链接:https://www.haomeiwen.com/subject/icltvqtx.html