コード例 #1
0
 private void EditMode(object sender, MouseButtonEventArgs e)
 {
     RemoveActive();
     activeSticker = (StickerImage)sender;
     activeSticker.StartEdit();
     activeSticker.delete.MouseLeftButtonDown += RemoveSticker;
 }
コード例 #2
0
 public void AddSticker(StickerImage image)
 {
     image.MouseLeftButtonDown    += EditMode;
     image.pH.MouseLeftButtonDown += PlusHeight;
     image.mH.MouseLeftButtonDown += MinusHeight;
     image.pW.MouseLeftButtonDown += PlusWidth;
     image.mW.MouseLeftButtonDown += MinusWidth;
     canvas.Children.Add(image.stickerCanvas);
     elems.Add(image);
 }
コード例 #3
0
 public void RemoveElement(StickerImage element)
 {
     AddToUndo();
     canvas.Children.Remove(element);
     elems.Remove(element);
 }
コード例 #4
0
        private void CreateSticker(object sender, MouseButtonEventArgs e)
        {
            StickerImage stickerImage = new StickerImage((Image)sender, this.dc);

            dc.AddSticker(stickerImage);
        }