public ReflectedPropertyInfo ToInstance(ObjectVM instance)
 {
     return(new ReflectedPropertyInfo(instance, PropertyInfo)
     {
         HierarchyAttributes = HierarchyAttributes
     });
 }
예제 #2
0
 static protected void DebuggerːBreak(bool condition, ObjectVM sender, string message)
 {
     if (!condition)
     {
         return;
     }
     DebugUtil.Break(message +
                     "\nType: " + DebugUtil.FormatTypeName(sender) +
                     "\nPath: " + DebugUtil.Try(() => sender.MemberPath, "??")
                     );
 }
예제 #3
0
 private static void RegisterInstance(ObjectVM o)
 {
     s_Instances.Add(new WeakReference(o));
     if (DateTime.Now.AddSeconds(-30) < s_InstancesLastCheck)
     {
         for (int i = 0; i < s_Instances.Count; i++)
         {
             if (!s_Instances[i].IsAlive)
             {
                 s_Instances.RemoveAt(i); i--;
             }
         }
     }
 }
예제 #4
0
 static protected void DebuggerːBreak(ObjectVM sender, string message)
 {
     DebuggerːBreak(true, sender, message);
 }
 public ReflectedPropertyInfo(ObjectVM reflectedObjectVM, PropertyInfo propertyInfo)
 {
     PropertyInfo       = propertyInfo;
     _ReflectedObjectVM = reflectedObjectVM;
 }
 public ViewModelMetadata GetMetadata(ObjectVM viewModelObject)
 {
     throw new NotImplementedException("{68B5216F-B46B-42BC-B3F8-A9A75F49411B}");
 }
예제 #7
0
 public TreeViewItemSupport(ObjectVM parent)
 {
     _parent = parent;
 }