I tried to add an image control on a pane but it is not shown in TBC. Is it supported?
Seemed to work for me. In the xaml code just add the image control;
<Label Content="My Image:" /> <Image x:Name="myImage" Height="50"/>
You will need to add two references...
from System import Uri
from System.Windows.Media.Imaging import BitmapImage
Then set the image in the OnLoad method;
def OnLoad(self, cmd, buttons, event): b = BitmapImage() b.BeginInit() b.UriSource = Uri(self.macroFolder + r"\picture.jpg") b.EndInit() self.myImage.Source = b
this is great, thanks a lot Gary, it works !
Retrieving data ...