İpinUcu ~ 51 – WPF’te Image Source’u C# Kod Tarafında Ayarlamak


WPF’te Image Source’u C# Kod Tarafında Ayarlamak için aşağıdaki kodlara göz atınız:

XAML

<Image  Name=”img1″ Stretch=”Fill”  Height=”110″ Width=”212″ />

C#

string resimYolu= “https://mehmetkaplan.files.wordpress.com/2010/07/mario-sz-icon1.png?w=128&h=128&#8221;;
imgSatici.Source = new ImageSourceConverter().ConvertFromString(resimYolu) as ImageSource;

 

 


Posted

in

,

by

Comments

Yorum bırakın