简体   繁体   中英

WP7 AutoCompleteBox Popup position

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>       

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

没有默认属性可以定义弹出窗口在AutoCompleteBox控件中的位置。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM