C
C#2y ago
Sir Ruggie

❔ 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
TheBoxyBear
TheBoxyBear2y ago
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
Sir Ruggie
Sir RuggieOP2y ago
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
TheBoxyBear
TheBoxyBear2y ago
this is an instance The one the caller used. Inside the class, it's equivalent to "my" or "me"
Sir Ruggie
Sir RuggieOP2y ago
Am I going in the right direction at least?
Accord
Accord2y 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