我如何修复ListBox显示图像下一个文本 [英] How I can fix ListBox Display Image next Text

查看:98
本文介绍了我如何修复ListBox显示图像下一个文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

抱歉,我的英语不好。


在我的项目中,列表框显示图像和文字。


但是,它显示了不同的速度。


显示之前图像,TextBlack首先显示。



所以,我想要同时显示图像,TextBox !!


我如何做到这一点? 



ex).xaml 



< DataTemplate>


&NBSP; < StackPanel Orientation =" Horizo​​ntal">


  &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屋!

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