List<string> pics = new List<string>() { "Assets/img1.png", "Assets/img2.png", "Assets/img3.png", "Assets/zwp1.png", "Assets/zwp2.png", "Assets/zwp3.png", "Assets/zwp4.png", "Assets/zwp5.png" }; Random rnd=new Random(); ImageBrush brush1 = new ImageBrush(); brush1.ImageSource = new BitmapImage(new Uri(pics[rnd.Next(0,7)], UriKind.Relative)); img1.Source = brush1.ImageSource;
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: