我如何修复ListBox显示图像下一个文本 [英] How I can fix ListBox Display Image next Text
问题描述
抱歉,我的英语不好。
在我的项目中,列表框显示图像和文字。
但是,它显示了不同的速度。
显示之前图像,TextBlack首先显示。
所以,我想要同时显示图像,TextBox !!
我如何做到这一点?
ex).xaml
< DataTemplate>
跨度>&NBSP; < StackPanel Orientation =" Horizontal">
&NBSP; < Image>
&NBSP; &NBSP; < Image.Source>
&NBSP; &NBSP; &NBSP; < BitmapImage UriSource =" ../ Resources / Image / somethings.png" CreateOptions =" BackgroundCreation">
&NBSP; &NBSP; &NBSP; &NBSP;< /&的BitmapImage GT; // UriSource是绑定。
&NBSP; &NBSP; < /Image.Source>
&NBSP; < / Image>
&NBSP; < TextBlock Text =" Some"> < / TextBlock的> // Text is Binding。
< / StackPanel>
< / DataTemplate>
http://office.microsoft .COM / EN-001 /访问帮助/创建-A-列表中,选择按使用-A-列表框或 - 组合框,HA010113052.aspx 块引用>
Sorry, my poor English.
In my project, Listbox is displayed image and text.
But, It was displayed different speed.
Before is displayed Image, TextBlack was displayed first.
So, I want show Image, TextBox at the same time!!
How I can do this?
ex) .xaml
<DataTemplate>
<StackPanel Orientation="Horizontal">
<Image>
<Image.Source>
<BitmapImage UriSource="../Resources/Image/somethings.png" CreateOptions="BackgroundCreation">
</BitmapImage> //UriSource is Binding.
</Image.Source>
</Image>
<TextBlock Text = "Some"> </TextBlock> //Text is Binding.
</StackPanel>
</DataTemplate>
解决方案http://office.microsoft.com/en-001/access-help/create-a-list-of-choices-by-using-a-list-box-or-combo-box-HA010113052.aspx
这篇关于我如何修复ListBox显示图像下一个文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!