Catel.MVVM.Views.ViewExtensions.GetVisualParent C# (CSharp) Method

GetVisualParent() public static method

Gets the logical parent of the specified dependency object.
The is null.
public static GetVisualParent ( this element ) : UIView
element this The element to retrieve the parent from.
return UIView
        public static UIView GetVisualParent(this UIView element)
        {
            Argument.IsNotNull("element", element);

            try
            {
                throw new MustBeImplementedException();
                //return element.Parent as UIView;
            }
            catch (Exception)
            {
                return null;
            }
        }