C
C#15mo ago
.tree

❔ 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
JakenVeina
JakenVeina15mo ago
context, please
.tree
.treeOP15mo ago
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
JakenVeina
JakenVeina15mo ago
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?
.tree
.treeOP15mo ago
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 :)
JakenVeina
JakenVeina15mo ago
o7
Accord
Accord15mo ago
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.
Want results from more Discord servers?
Add your server