public RelatedItemDetailsPage(RelatedItem relatedItem, string ItemType, RelatedItemsViewModel viewModel)
        {
            this.viewModel             = viewModel;
            this.viewModel.RelatedItem = this.relatedItem = relatedItem;
            this.ItemType = ItemType;

            InitializeComponent();
            if (relatedItem.UrlThumbnailFull.Contains(".svg"))
            {
                svgImg.IsVisible = true;
                svgImg.Source    = relatedItem.UrlIconFull;
            }
            else
            {
                Img.IsVisible = true;
                Img.Source    = relatedItem.UrlThumbnailFull;
            }

            //User user = Common.Instance.GetActiveUser();
            if (relatedItem.UserCreated.Id.Value.Equals(Common.CurrentWorkspace.UserID))
            {
                deleteContent.IsVisible = true;
            }
            BindingContext = this.viewModel = viewModel;
        }
        public RelatedItemsCustomView()
        {
            InitializeComponent();

            // TextEntry.BindingContext = this;
            slRelatedItems.BindingContext = viewModel = new RelatedItemsViewModel();
            viewModel.IsExpandedList      = false;
        }