The UI Factory returned a valid UIElement but it does not support WPF and cannot be used in this scenario. (Actual type:{0}). ...