public static WpfInteractor GetWpfInteractorOrDefault(this FrameworkElement element) { var wpfInteractor = element.GetWpfInteractor(); if (null == wpfInteractor) { wpfInteractor = WpfInteractor.CreateEmpty(); element.SetWpfInteractor(wpfInteractor); } return(wpfInteractor); }
public static void SetWpfInteractor(this FrameworkElement element, WpfInteractor value) { element.SetValue(WpfInteractorProperty, value); }