WP7 AutoCompleteBox弹出位置 [英] WP7 AutoCompleteBox Popup position
问题描述
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>
根据文本框的高度和宽度更改GolbalOffsetX
和GlobalOffsetY
.
Change GolbalOffsetX
and GlobalOffsetY
according to your textbox height and width.
这篇关于WP7 AutoCompleteBox弹出位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!