After Windows Phone panaroma hides the control, selectionchanged will flash and disappear.

Source: Internet
Author: User

Use the panaroma control,

<Controls: panoramaitem foreground = "  {Staticresource maintitle}  " Header = "  My account  " > <Grid Height = "  650  " Margin = "  12, 0, 0, 0  " Verticalalignment = "  Top " > <Grid X: Name = "  Userhomelogined  " Visibility = "  Collapsed  " > <Grid. rowdefinitions> <rowdefinition Height = "  150  " > </Rowdefinition> <rowdefinition Height = "  *  " > </Rowdefinition> </grid. rowdefinitions> <grid. Row = "  0  " > <Stackpanel orientation = "  Horizontal  " > <Image stretch = "  None  " Source = "  /Image/userhome/uploadphoto.png  " > </Image> <textblock margin = "  0, 12, 0, 0  " TEXT = "  A user  " > </Textblock> </stackpanel> </GRID> <ListBox X: Name = "  Userhomemenu  " Grid. Row = "  1  " > <Listboxitem> <stackpanel Height = "  40  " Orientation = "  Horizontal  " > <Image Source = "  /Image/userhome/collection.png  " > </Image> <textblock X: Name = "  Accountremain  " Tap = "  Accountremain_tap  " Margin = "  12, 0, 0, 0  " Foreground = "  {Staticresource hubbackground}  " TEXT = "  My balance  " > </Textblock> </stackpanel> </listboxitem> </ListBox> </GRID> <stackpanel X: Name = "  Userhomeunlogin  " Orientation = "  Vertical  " > <Textblock text = "  Username/email/member account  " > </Textblock> <textbox borderthickness = " 1  " Borderbrush = "  Gray  " Width = "  400  " Style = "  {Staticresource textboxstyle1}  " > </Textbox> <textblock text = "  Password  " > </Textblock> <textbox borderthickness = "  1  " Borderbrush = "  Gray  " Width = "  400  " Style = "  {Staticresource textboxstyle1}  " > </Textbox> <button X: Name = " Login  " Click = "  Login_click  " Width = "  200  " Height = "  100  " Background = "  {Staticresource hubbackground}  " Content = "  Login " Style = "  {Staticresource buttonstyle1}  " > </Button>  "  {Staticresource hubbackground}  " Content = "  If you do not have an account, click here to register  " Name = "  Register  " /> </Stackpanel> </GRID> </controls: panoramaitem>

After the user clicks log onUserhomeunloginHide, SetUserhomelogined:

 

 
Userhomeunlogin. Visibility = system. Windows. Visibility. collapsed;
Userhomelogined. Visibility = system. Windows. Visibility. visible;

After dragging panaroma,Userhomeunlogin will flash and disappear,

Solution

 
Userhomeunlogin .. children. Clear (); userhomelogined. Visibility= System. Windows. Visibility. visible;

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.