❔ XAML nested View, Parent is null?
I have one view inside another. In the inner view I use Parent.Parent.Paren. etc to the point of reaching the outer view. However once I reach the "end" of the inner view, Parent returns null. I have trouble seeing why that happens and what alternative I have.
6 Replies
context, please
What kind of context would be needed? I have a View inside which I call another view (the content of one of two tabs that I switch between). Meanwhile the outer view is visible the entire time
what view?
inside of what view?
what's your XAML look like?
where are you invoking
Parent.Parent.Parent
?
when are you invoking Parent.Parent.Parent
?Yes I see now how my question was terrible, however I have solved my issue so thank you for pointing out how I could have provided more information :)
o7
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.