ViewSwitcher always reload some tabs on selection. #31
Unanswered
ScarletKuro
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello.
I wanted to make one specific tab view to always load when selected.
I tried to do it by making my own LazyView implementation, i changed IsLoaded to be always false
So that ViewSwitcher would always call the LoadView, but sadly it doesn't work as expected. When I click on tab for the first time it works, when i select it again I can see that the view is being recreated but the content is blank.
I know that in ViewSwitcher you can replace
<controls:LazyVieweReload x:TypeArguments="tabViews:OrdersPage"/>
to just<tabViews:OrdersPage/>
and it will work, but it will have an side effect, that on application start it will load that view as well when its not selected.Is there any other way/ideas to achieve that?
Beta Was this translation helpful? Give feedback.
All reactions