4 using System.Collections.Generic;
7 using System.Threading.Tasks;
9 using SiliconStudio.Presentation.Core;
11 namespace SiliconStudio.Presentation.Extensions
24 if (dependencyObject == null)
27 if ((dependencyObject is T) ==
false)
29 throw new ArgumentException(
string.Format(
"Invalid '{0}' TemplatePart type. '{1}' expected.",
30 dependencyObject.GetType().FullName, typeof(T).FullName));
33 return (T)dependencyObject;