Print Page | Close Window

BackstageListBox with Markup-Icons / Hyperlinks

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=23996
Printed Date: 21 November 2024 at 12:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BackstageListBox with Markup-Icons / Hyperlinks
Posted By: Sven3
Subject: BackstageListBox with Markup-Icons / Hyperlinks
Date Posted: 12 June 2020 at 8:59am
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




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net