AutoCompleteBox在Silverlight工具包为Windows Phone错误的显示 [英] AutoCompleteBox in silverlight toolkit for windows phone wrong display

查看:84
本文介绍了AutoCompleteBox在Silverlight工具包为Windows Phone错误的显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在从工具包的Windows手机autocompletebox一个问题。我将其绑定到一些数据,然后当我preSS它,并开始打字,它发现了一些项目,但它们都显示错误(该列表显示从箱分离,并且如果我点击任何项目,没有任何反应。如果我点击那里的项目将被认为是(例如,就在盒子的顶部),然后它被选中。它看起来像一个渲染问题(错误?)),但也许我做错了什么。这里的code的盒子:

 < D​​ataTemplate中X:关键=DataTemplate1>
            < ContentControl中含量={结合名}保证金=8,7/>
        < / DataTemplate中>

<工具箱:AutoCompleteBox的ItemsSource ={结合}X:名称=txtSelectValues​​=了minWidth250保证金=0,0,0,0的ItemTemplate ={的StaticResource DataTemplate1}VerticalAlignment =热门/&GT ;
 

解决方案

发现了它。它与AutoCompleteBox的错误。当ScrollViewer控件内,下拉被搞砸了,并显示在一个不正确的位置

I'm having a problem with the autocompletebox from the toolkit for windows phone. I bind it to some data, then when i press it and start typing, it discovers some items but they are displayed wrong (the list is shown separated from the box, and also if i click on any item, nothing happens. If i click where the item would be supposed to be (for example, right on the top of the box), then it gets selected. It looks like a rendering problem (bug?)) but perhaps i'm doing something wrong. Here's the code for the box :

<DataTemplate x:Key="DataTemplate1">
            <ContentControl Content="{Binding Name}" Margin="8,7"/>
        </DataTemplate>

<toolkit:AutoCompleteBox ItemsSource="{Binding}" x:Name="txtSelectValues" MinWidth="250" Margin="0,0,0,0" ItemTemplate="{StaticResource DataTemplate1}" VerticalAlignment="Top" />  

解决方案

Found it. It's a bug with the AutoCompleteBox. When inside a scrollviewer control, the dropdown gets messed up and displayed in an incorrect position

这篇关于AutoCompleteBox在Silverlight工具包为Windows Phone错误的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆