public void addOwner(User owner) { Image newOwner = new Image(); newOwner.Source = new BitmapImage(new Uri(owner.icon)); owners.Add(owner); // int x = owners.Count; newOwner.Opacity = 0.8; newOwner.Height = 30; newOwner.Width = 30; InnerGrid.Orientation = Orientation.Vertical; InnerGrid.Children.Add(newOwner); }
public Watermark(BitmapImage img, string watermarkSource, string name,User owner) { InitializeComponent(); this.name = name; if (watermarkSource != null) { owners.Add(owner); canDrag = true; image.Source = img; addOwner(owner); } }
public void WatermarkControl(BitmapImage image, string watermark, string file_name,User owner) { Watermark uc = new Watermark(image, watermark, file_name,owner); //myScatterView.Items.Add(uc); }