Пример #1
0
        public static ISceneInsertionPoint GetImportInsertionPoint(SceneViewModel sceneViewModel)
        {
            SceneElement sceneElement = (SceneElement)sceneViewModel.FindPanelClosestToRoot();

            if (sceneElement != null && sceneElement.DefaultInsertionPoint != null && sceneElement.DefaultInsertionPoint.CanInsert(PlatformTypes.Canvas))
            {
                return(sceneElement.DefaultInsertionPoint);
            }
            return((ISceneInsertionPoint)null);
        }