I have an element in my MainWindow.xaml with a name:
<Canvas x:Name="Calque1" Width="97" Height="30" Canvas.Left="0" Canvas.Top="0">
Is it possible to do a "if statement" with Calque1 in the MainWindow.xaml.cs?
Something a bit like that:
if(theme == 0)
{
model.SetImageData(File.ReadAllBytes(@"D:\My_Files\Planche 4\Planche_2018-01-15 (v 4.0.0.4)\Planche\Resources\logo.png"));
}
else
{
(Put somthing here to display Calque1);
}
Can't find a usefull answer.
Aucun commentaire:
Enregistrer un commentaire