示例#1
0
 public T GetAttachedProperty <T>(AttachedProperty <T> prop)
 {
     Console.WriteLine("GET AttachedProperty");
     return((T)(_AttachedProperties[prop] ?? prop.DefaultValue));
 }
示例#2
0
 public void SetAttachedProperty <T>(AttachedProperty <T> prop, T val)
 {
     Console.WriteLine("SetAttachedProperty 1");
     _AttachedProperties[prop] = val;
     Console.WriteLine("SetAttachedProperty 2");
 }