コード例 #1
0
        public override bool OnOptionsItemSelected(IMenuItem item)
        {
            switch (item.ItemId)
            {
            case Resource.Id.main_action_crop:
                _cropImageView.GetCroppedImageAsync();
                return(true);

            case Resource.Id.main_action_rotate:
                _cropImageView.RotateImage(90);
                return(true);

            default:
                if (item.ItemId == Resource.Id.main_action_flip_horizontally)
                {
                    _cropImageView.FlipImageHorizontally();
                    return(true);
                }
                else if (item.ItemId == Resource.Id.main_action_flip_vertically)
                {
                    _cropImageView.FlipImageVertically();
                    return(true);
                }
                break;
            }
            return(base.OnOptionsItemSelected(item));
        }