WP7 AutoCompleteBox Popup position

℡╲_俬逩灬. 提交于 2019-12-04 02:27:52

问题


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


回答1:


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>       

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




回答2:


There is no default property that will define the location for the popup in the AutoCompleteBox control.



来源:https://stackoverflow.com/questions/5251785/wp7-autocompletebox-popup-position

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!