예제 #1
0
 private static void ParentAttached(object o, MemberAttachedEventArgs args)
 {
     if (!ExplicitParentListener.SetParentValue(o) && DebbugerAttached)
     {
         lock (ExplicitParentTypes)
         {
             var type = o.GetType();
             if (!ExplicitParentTypes.Contains(type))
             {
                 Tracer.Warn(@"Could not find a 'Parent' property on type '{0}', you should register it, without this the data bindings may not work properly. You can ignore this message if you are using the attached parent member.", type);
                 ExplicitParentTypes.Add(type);
             }
         }
     }
 }
 static ExplicitParentListener()
 {
     Instance = new ExplicitParentListener();
 }
 static ExplicitParentListener()
 {
     Instance = new ExplicitParentListener();
 }