带有图标和事件的AutoCompleteTextBox

时间:2015-03-31 06:39:51

标签: c# windows-phone-8 autocomplete textbox

我最近设法将toolkit:PhoneTextBox ActionIcon - image和ActionIconTapped - 动作实施到我的项目中( Windows Phone Toolkit ):

enter image description here

我需要AutoCompleteTextBox同样的设计。有没有简单的方法呢?

1 个答案:

答案 0 :(得分:0)

如果我理解正确,你想要这样吗?

<StackPanel Orientation="Horizontal" Background="White" HorizontalAlignment="Left" VerticalAlignment="Top">
       <toolkit:AutoCompleteBox Width="400" Text="Search items"/>
       <Image Name="ActionIcon" Height="50" Width="50" Source="/ICommandExamples;component/Images/icon_search_text.png" Tap="ActionIconTapped"/> 
 </StackPanel>