locked
Can an AutoComplete Textbox become multi-line? RRS feed

  • Question

  • Hello all!

    I have a simple question and need solution soon.

    Can we make an AutoComplete TextBox mult-iline? I search on net and try few things which made possible to use AutoComplete Textbox to me but I am unable to use Wrap property in it.

    I also tried to use TextBolck in DataTemplete inside AutoComplete TextBox but it didn't work for me.

    Anybody have any idea then please share it.

    Thanks in advance.


    sumita

    Monday, October 8, 2012 7:34 AM

Answers

  • Thanks for your reply but now I got the solution for this.

    I did this-

    <phone:PhoneApplicationPage.Resources>
           
            <Style x:Name="textBoxStyle" TargetType="TextBox">
                <Setter Property="TextWrapping" Value="Wrap"/>
            </Style>
       </phone:PhoneApplicationPage.Resources>

    <toolkit:AutoCompleteBox Height="127" Canvas.Left="45" Canvas.Top="512"
                                          Width="387"
                                         TextBoxStyle="{StaticResource textBoxStyle}" FontSize="22" 
                                         />


    sumita

    • Marked as answer by The Soal Tuesday, October 9, 2012 1:09 PM
    Tuesday, October 9, 2012 9:11 AM

All replies

  • Hi sumita,

    Can you provide a little more information regarding your intended goal and perhaps your failing sample code?


    Mark Chamberlain Sr. Escalation Engineer | Microsoft Developer Support | Windows Phone 7

    Monday, October 8, 2012 10:12 PM
  • Thanks for your reply but now I got the solution for this.

    I did this-

    <phone:PhoneApplicationPage.Resources>
           
            <Style x:Name="textBoxStyle" TargetType="TextBox">
                <Setter Property="TextWrapping" Value="Wrap"/>
            </Style>
       </phone:PhoneApplicationPage.Resources>

    <toolkit:AutoCompleteBox Height="127" Canvas.Left="45" Canvas.Top="512"
                                          Width="387"
                                         TextBoxStyle="{StaticResource textBoxStyle}" FontSize="22" 
                                         />


    sumita

    • Marked as answer by The Soal Tuesday, October 9, 2012 1:09 PM
    Tuesday, October 9, 2012 9:11 AM