Example #1
0
        public static ImageFragment Instantiate(string filePath)
        {
            var fragment = new ImageFragment();

            var bundle = new Bundle();

            bundle.PutString("filePath", filePath);
            fragment.Arguments = bundle;

            return(fragment);
        }
Example #2
0
        private void OpenContent(IContent content)
        {
            _currentPath = content.Path;
            _isAtRoot    = false;

            if (content is IContentSet <ILocalContent> contentSet)
            {
                _contentAdapter.ReplaceItems(contentSet.Contents.Cast <IContent>().ToList());
            }
            else
            {
                switch (content.Kind)
                {
                case Kinds.Image:
                    FragmentHelper.Push(Activity, ImageFragment.Instantiate(content.Path));
                    break;
                }
                //_contentController.OpenContent(Content);
            }
        }