For this code...
private void Label1_MouseUp(object sender, RoutedEventArgs e)
{
Newtonsoft.Json.Linq.JObject.FromObject(e).ToString();
}
I get this error...
Self referencing loop detected with type 'System.Windows.Documents.Run'. Path 'MouseDevice.Target.Inlines[0].SiblingInlines'.
There are plenty of other similar question, but I cant figure out how to implement the solutions in my case (I am learning C#). E.g. add ReferenceLoopHandling = ReferenceLoopHandling.Ignore
But cant figure out where to put this.
(By the way, I'm trying to find a simple general-purpose way of printing out debug info.)