public static RecyclePool GetPoolInstance(DataTemplate dataTemplate) => (RecyclePool)dataTemplate.GetValue(PoolInstanceProperty);
/// <summary> /// Gets the Type associated to the TargetType attached property. /// </summary> /// <param name="element">The targeted data template.</param> /// <returns></returns> public static Type GetTargetType(DataTemplate element) { return((Type)element.GetValue(TargetTypeProperty)); }