WP7 AutoCompleteBox弹出位置 [英] WP7 AutoCompleteBox Popup position

查看:95
本文介绍了WP7 AutoCompleteBox弹出位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WP7中的工具包:AutoCompleteBox打开"弹出窗口,结果在文本字段上方.我需要此Popup位于TextBox下方. 在这上浪费了几个小时.最后,我编写了自己的autoCompleteBox,并在下面打开了一个ListBox.

The toolkit:AutoCompleteBox in WP7 "opens" the Popup with results above the textfield. I need this Popup to be below the TextBox. Wasted hours on this. finally, i've written my own autoCompleteBox with a ListBox opening below.

只是出于好奇,请告诉我应该如何对待原始"人

Just out of curiosity, pleas tell me how it shold be with the "original" one

推荐答案

我遇到了同样的问题,这就是我使用

I faced the same issue and this is how I solved it, using Perspective Transforms and RenderTransform in the borders of Popup in the default template.

<Popup>
  <Grid>
   <Border>
   <Border.Projection> 
    <PlaneProjection GlobalOffsetX="-10" GlobalOffsetY="37" CenterOfRotationY="1" CenterOfRotationX="0" RotationX="180"/>
   </Border.Projection>
   <Border>
    <Border.Projection>
     <PlaneProjection RotationX="-180"/>
    </Border.Projection>
    <ListBox/>
   </Border>
  </Border>
 </Grid>
</Popup>       

根据文本框的高度和宽度更改GolbalOffsetXGlobalOffsetY.

Change GolbalOffsetX and GlobalOffsetY according to your textbox height and width.

这篇关于WP7 AutoCompleteBox弹出位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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