Exemplo n.º 1
0
        public MainPage()
        {
            mainPage = this;
            this.InitializeComponent();

            Opacity = 0.2;
            page = 1;
            Header.header.setToolbarEnabled(false);

            editImage = new EditCurrentImage(EditObject, 0, null);
            
            pictures = new ObservableCollection<Picture>();

            activeSearchList = new List<string>();
        }
Exemplo n.º 2
0
 public void NavigateToEditing(Picture sentPicture)
 {
     currentlyEditing = Editing.Picture;
     ContentGridView.Visibility = Visibility.Collapsed;
     GridViewNav.Visibility = Visibility.Collapsed;
     Edit.Visibility = Visibility.Visible;
     MetaEdit.Visibility = Visibility.Collapsed;
     EditObject.Source = sentPicture.ImageSource;
     editImage = new EditCurrentImage(EditObject, sentPicture.Id, sentPicture.ImageSource);
     EditObject.Clip = null;
     EditObject.RenderTransformOrigin = new Point(0.5, 0.5);
     EditObject.RenderTransform = new RotateTransform() { CenterX = 0.5, CenterY = 0.5, Angle = 0 };
     ApplyEdit.IsEnabled = false;
     CropButton.IsEnabled = true;
     ApplyEdit.Label = "Lagre";
     ImagePopup.IsOpen = false;
     Header.header.ResetEditButton();
 }