navigation - Retain content on Page1 after navigating to Page2 and back to Page1 in WPF -


on page1 have textbox, combobox , hyperlink control. textbox has value "abc" , combobox has value "123".

when click on hyperlink on page1 navigate page2.

on page2 click on button takes me page1.

i can see values. cannot see values when controls on page1 bound data source.

if have xaml this:

<textbox: x:name="txtname" text="{binding path = uname}" /> 

then in page1 navigation page2 , not retaining values in textbox , combobox.

is kind of intended behaviour or bug?

have remembered set keepalive="true" in page1 xaml?


Comments

Popular posts from this blog

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -

openssl - Load PKCS#8 binary key into Ruby -