自动完成建议出现在文本框的TOP -Windows PHONE [英] AUTOCOMPLETE SUGGESTIONS APPEARS ON TOP OF TEXT BOX -WINDOWS PHONE
问题描述
我使用的自动完成的文本框从Windows手机toolkit.I需要我下面的文本框建议列表,但它显示的文本框的上方。如何让我的建议显示的文本box..Here是我的XAML以下。
<电网保证金=0,336,0,189X:NAME =editrow能见度=可见>
< Grid.RowDefinitions>
< RowDefinition高度=自动>< / RowDefinition>
&所述; RowDefinition高度=*>&下; / RowDefinition>
< /Grid.RowDefinitions>
< Grid.ColumnDefinitions>
< ColumnDefinition WIDTH =220>< / ColumnDefinition>
< ColumnDefinition WIDTH =100>< / ColumnDefinition>
< ColumnDefinition WIDTH =100>< / ColumnDefinition>
< /Grid.ColumnDefinitions>
<工具箱:AutoCompleteBox X:NAME =NEWNAMEFILTERMODE =StartsWithIsTextCompletionEnabled =真前景=白色背景=#5300了borderThickness =0Grid.Column =0Grid.Row = 0利润=10,0,0,0IsDropDownOpen =真RenderTransformOrigin =0,0>
<工具箱:AutoCompleteBox.ItemTemplate>
<&DataTemplate的GT;
< StackPanel的背景=灰色方向=横向>
< TextBlock的文本={结合}/>
< / StackPanel的>
< / DataTemplate中>
< /工具包:AutoCompleteBox.ItemTemplate>
< /工具包:AutoCompleteBox>
&所述;文本框X:名称=rowquantity前景=白背景=#5300了borderThickness =0Grid.Column =1Grid.Row =0InputScope =号>&下; /文本框>
<工具箱:ListPicker Grid.Row =0X:NAME =单位前景色=白了borderThickness =0背景=#5300Grid.Column =2ExpansionMode =FullScreenOnly保证金= 12,5,0,14>
<工具箱:ListPicker.FullModeItemTemplate>
<&DataTemplate的GT;
< StackPanel的方向=横向保证金=0 0 0 0> < TextBlock的文本={结合}
字号=32lineHeight是=1/>
< / StackPanel的>
< / DataTemplate中>
< /工具包:ListPicker.FullModeItemTemplate>
< /工具包:ListPicker>
<按钮内容=添加BorderBrush =#5300前景=#5300Grid.Column =1Grid.ColumnSpan =2Grid.Row =1的HorizontalAlignment =右VerticalAlignment =壮志HEIGHT =74点击=Button_Click保证金=0,0,3,0WIDTH =158/>
< /网格和GT;
在弹出的位置是基于现有的大小决定。如果有上述 AutoCompleteTextBox更多的空间
,就会弹出。你可以看到这个<一个href=\"http://phone.$c$cplex.com/SourceControl/latest#Microsoft.Phone.Controls.Toolkit/AutoCompleteBox/PopupHelper.cs\"相对=nofollow> popuphelper.cs
其中code安排在弹出的源文件。
真的是没有覆盖的行为的选项。
I am using auto complete textbox from windows phone toolkit.I need the list of suggestions below my textbox but it shows up above the text box .How do I make the suggestions appear below the text box..Here is my XAML.
<Grid Margin="0,336,0,189" x:Name="editrow" Visibility="Visible">
<Grid.RowDefinitions>
<RowDefinition Height="auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="220" ></ColumnDefinition>
<ColumnDefinition Width="100"></ColumnDefinition>
<ColumnDefinition Width="100"></ColumnDefinition>
</Grid.ColumnDefinitions>
<toolkit:AutoCompleteBox x:Name="newname" FilterMode="StartsWith" IsTextCompletionEnabled="True" Foreground="White" Background="#53000000" BorderThickness="0" Grid.Column="0" Grid.Row="0" Margin="10,0,0,0" IsDropDownOpen="True" RenderTransformOrigin="0,0">
<toolkit:AutoCompleteBox.ItemTemplate>
<DataTemplate>
<StackPanel Background="Gray" Orientation="Horizontal">
<TextBlock Text="{Binding }"/>
</StackPanel>
</DataTemplate>
</toolkit:AutoCompleteBox.ItemTemplate>
</toolkit:AutoCompleteBox>
<TextBox x:Name="rowquantity" Foreground="White" Background="#53000000" BorderThickness="0" Grid.Column="1" Grid.Row="0" InputScope="Number"></TextBox>
<toolkit:ListPicker Grid.Row="0" x:Name="units" Foreground="White" BorderThickness="0" Background="#53000000" Grid.Column="2" ExpansionMode="FullScreenOnly" Margin="12,5,0,14" >
<toolkit:ListPicker.FullModeItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Margin="0 0 0 0">
<TextBlock Text="{Binding}"
FontSize="32" LineHeight="1"/>
</StackPanel>
</DataTemplate>
</toolkit:ListPicker.FullModeItemTemplate>
</toolkit:ListPicker>
<Button Content="Add" BorderBrush="#53000000" Foreground="#53000000" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="1" HorizontalAlignment="Right" VerticalAlignment="Top" Height="74" Click="Button_Click" Margin="0,0,3,0" Width="158"/>
</Grid>
The location of the popup is determined based on the available size. If there's more space above the AutoCompleteTextBox
, it will pop up. You can see this in the popuphelper.cs
source file where the code arranges the popup.
There really isn't an option to override the behavior.
这篇关于自动完成建议出现在文本框的TOP -Windows PHONE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!