Hello,
how can i add an icons to BackstageListBox1 items?
tried by adding them in different ways:
Me.BackstageListBox1.Icons.LoadBitmap DLLPath & "\button-add.bmp", 1, xtpImageNormal XtremeSuiteControls.Icons.LoadBitmap DLLPath & "\button-add.bmp", 2, xtpImageNormal
Me.BackstageListBox1.Gallery.items.Icons.LoadBitmap DLLPath & "\button-add.bmp", 3, xtpImageNormal
even used sample code from codejock markup sample:
XtremeSuiteControls.Icons.LoadBitmap "C:\Program Files (x86)\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v19.1.0\Samples\Common\VB\MarkupSample\Icons\Favorites.png", 10, xtpImageNormal
Me.BackstageListBox1.Gallery.items.addItem 100, "<Border BorderThickness='2' BorderBrush='Orange' Margin='0, 2, 0, 2' Padding='3'><StackPanel Orientation='Horizontal'>" & _ "<Image Source='10'/>" & _ "<Grid><Grid.ColumnDefinitions><ColumnDefinition Width='Auto'/><ColumnDefinition Width='*'/></Grid.ColumnDefinitions>" & _ "<Grid.RowDefinitions><RowDefinition/><RowDefinition/></Grid.RowDefinitions>" & _ "<TextBlock TextAlignment='Right' FontWeight='Bold' Foreground='Navy' Text='Description:'/>" & _ "<TextBlock TextAlignment='Right' Grid.Row='1' FontWeight='Bold' Foreground='Navy' Text='Current Price:'/>" & _ "<TextBlock Margin='6, 0, 0, 0' Grid.Column='1' Text='Snowboard and bindings'/>" & _ "<TextBlock Margin='6, 0, 0, 0' Grid.Column='1' Grid.Row='1' Text='$150'/>" & _ "</Grid></StackPanel></Border>"
Icon does not show up! How to make the icon appear?
Many thanks Sven
|