Beispiel #1
0
        public ImageGridEntry Add(string name, byte[] image, int width = 128, int height = 128)
        {
            var entry = new ImageGridEntry(name, image)
            {
                Width       = width + 256,
                Height      = height,
                ImageWidth  = width,
                ImageHeight = height
            };

            Add(entry);
            NotifyPropertyChanged(nameof(Items));
            return(entry);
        }
Beispiel #2
0
 public void Add(ImageGridEntry entry)
 {
     internalItems.Add(entry);
     NotifyPropertyChanged(nameof(Items));
 }