Comment définir l'image backgound d'une grille en C# (code derrière).silverlight grid background image
Merci Sp Puis-je faire quelque chose comme ça?
public ImageSource ImageSourcePin
{
set { this.DreamTypeImagePin.Background = value; }
}
Cela a fonctionné, merci pour votre aide
public String ImageSourcePin
{
set {
ImageBrush img = new ImageBrush();
img.ImageSource = (ImageSource)new ImageSourceConverter().ConvertFromString(value);
DreamTypeImagePin.Background = img;
}
}
Si vous souhaitez que XAML soit converti en codeBEA. Tu peux essayer ça. http://xamlt.com/ Cela pourrait être utile. –