示例#1
0
 /// <summary>
 /// Registers an AttachedProperty
 /// </summary>
 /// <param name='propertyName'>
 /// The name of the property
 /// </param>
 /// <param name='propertyType'>
 /// The type of the property
 /// </param>
 /// <param name='ownerType'>
 /// The owning type of the property
 /// </param>
 /// <param name='metadata'>Additional Metadata about the property</param
 public static AttachedProperty Register(
     string propertyName,
     Type propertyType,
     Type ownerType,
     AttachedPropertyMetadata metadata
     )
 {
     return new  AttachedProperty
     {
         PropertyName = propertyName,
         PropertyType = propertyType,
         OwnerType = ownerType,
         Metadata = metadata,
     };
 }
示例#2
0
 /// <summary>
 /// Registers an AttachedProperty
 /// </summary>
 /// <param name='propertyName'>
 /// The name of the property
 /// </param>
 /// <param name='propertyType'>
 /// The type of the property
 /// </param>
 /// <param name='ownerType'>
 /// The owning type of the property
 /// </param>
 /// <param name='metadata'>Additional Metadata about the property</param
 public static AttachedProperty Register(
     string propertyName,
     Type propertyType,
     Type ownerType,
     AttachedPropertyMetadata metadata
     )
 {
     return(new  AttachedProperty
     {
         PropertyName = propertyName,
         PropertyType = propertyType,
         OwnerType = ownerType,
         Metadata = metadata,
     });
 }