Data not binding properly to toolkit:PhoneTextBox control in windows phone

hi

 I'm working on a Application, in that i have used toolkit:PhoneTextBox insted of TextBox control.

<toolkit:PhoneTextBox x:Name="SecondaryContactNum" Text="{Binding contact2_number, Mode=TwoWay}"  Style="{StaticResource NormalTextBoxStyle}"
                          TextChanged="SecondaryContactNum_TextChanged_1"  MaxLength="10" Hint="Mobile Number" DisplayedMaxLength="10"  HidesActionItemWhenEmpty="True" ActionIconTapped="ActionIcon_Tap" ActionIcon="/Assets/close_icon2.png"
                             GotFocus="SecondaryContact_GotFocus" LostFocus="SecondaryContact_LostFocus" InputScope="Number"/>

I'm Binding data in my page,  Text="{Binding contact2_number, Mode=TwoWay}" to this toolkit:PhoneTextBox from my StateUtilites class.

when ever i'm navigating to anothor page from this page and made changes to my StateUtilites class, and again coming back to this page, data is Binding and "Hint" also displaying and my "SecondaryContactNum" PhoneTextBox also having same foreground colour as Hint.

Please help me.

Thanks and regards.

Ranjit

  • Edited by ranjit gs Thursday, November 21, 2013 6:03 AM
November 20th, 2013 5:26pm

Hi,

Here is a forum for Visio topic, I recommend you post your question to Windows phone forum:

http://social.msdn.microsoft.com/Forums/en-US/home?category=wpapps&filter=alltypes&sort=lastpostdesc

The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.

George Zhao
TechNet Community Support

Free Windows Admin Tool Kit Click here and download it now
November 21st, 2013 8:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics