Пример #1
0
        void _photoView_Click(object sender, EventArgs e)
        {
            var p = _crime.Picture;

            if (p == null)
            {
                return;
            }

            var fm = Activity.SupportFragmentManager;

            ImageFragment.NewInstance(p.Filename).Show(fm, DIALOG_IMAGE);
        }
Пример #2
0
        public static ImageFragment NewInstance(string imagePath)
        {
            var args = new Bundle();

            args.PutString(EXTRA_IMAGE_PATH, imagePath);

            var fragment = new ImageFragment();

            fragment.Arguments = args;
            fragment.SetStyle(DialogFragment.StyleNoTitle, 0);

            return(fragment);
        }