3 using System.Collections.Generic;
5 namespace ElmSharp.Test
7 public class ImageTest1 : TestCaseBase
9 public override string TestName => "ImageTest1";
10 public override string TestDescription => "To test basic operation of Image";
12 public override void Run(Window window)
14 Image image = new Image(window)
18 image.Load("/home/owner/res/picture.png");
19 image.Clicked += (e, o) =>
21 Console.WriteLine("Image has been clicked. (IsFixedAspect = {0}", image.IsFixedAspect);
22 image.IsFixedAspect = image.IsFixedAspect == true?false:true;
26 image.Resize(500, 500);