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