WP7 AutoCompleteBox Popup position

前端 未结 2 1884
不知归路
不知归路 2021-01-17 01:25

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 wri

相关标签:
2条回答
  • 2021-01-17 01:30

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

    0 讨论(0)
  • 2021-01-17 01:41

    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.

    0 讨论(0)
提交回复
热议问题