示例#1
0
 public AttachedEngineTests()
 {
     sut      = new AttachedPropertyEngine(o => ((BaseObject)o).Parent);
     property = sut.RegisterProperty("Column", typeof(Grid), typeof(int), new AttachedPropertyMetadata {
         DefaultValue = DefaultValue, Inherits = true
     });
 }
示例#2
0
 public AttachedProperty RegisterProperty(string name, Type owner, Type propertyType, AttachedPropertyMetadata metadata)
 {
     return(attachedEngine.RegisterProperty(name, owner, propertyType, metadata));
 }