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

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

问题描述

WP7 中的工具包:AutoCompleteBox打开"带有文本字段上方的结果的弹出窗口.我需要此弹出窗口位于文本框下方.在这上面浪费了几个小时.最后,我编写了自己的 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

推荐答案

我遇到了同样的问题,这就是我解决它的方法,使用 Perspective TransformsRenderTransform 在默认模板中的 Popup 的边框中.

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天全站免登陆