❔ C sharp object reference error
I am trying to reference an object that I'm displaying on PageHeader.xaml and I keep getting this error.
Not sure what I'm doing wrong
5 Replies
XamlRoot is an instance member. You need to get that instance from somewhere. It's like saying using a Person's name but you don't know who it is
PageHeader.xaml is where I'm trying to pull it from...
It worked when I had it on PageHeader.xaml.cs and called this.XamlRoot
this
is an instance
The one the caller used. Inside the class, it's equivalent to "my" or "me"Am I going in the right direction at least?
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.