读书人

textbox顶部平添图片 求代码!

发布时间: 2013-04-21 21:18:07 作者: rapoo

textbox顶部添加图片 求代码!!
textbox顶部平添图片  求代码!好像是自定义,不过不会写。。。求大神教。。。 期待.
[解决办法]


<DockPanel>
<Button BorderThickness="0" DockPanel.Dock="Left" HorizontalAlignment="Right" Height="28" Width="23">
<DynamicResource ResourceKey="SearchBar"/>
</Button> 'This is a button, because I have a custom Style which I am using which makes all the borders go away. And also because I use it to clear the field.
<TextBox Text="Search..." FontSize="16" HorizontalAlignment="Stretch" Background="Transparent"/>
</DockPanel>


参考

读书人网 >CAD教程

热点推荐