Print Page | Close Window

ImageManager LoadVectorIconCode

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=24585
Printed Date: 13 September 2025 at 7:40am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ImageManager LoadVectorIconCode
Posted By: Muckl
Subject: ImageManager LoadVectorIconCode
Date Posted: 24 July 2025 at 10:49am
Is there a functioning example in which SVG icons with LoadVectoriconcode are invited to the command bars' image manager?
The function returns true, but no picture is shown.



Replies:
Posted By: agontarenko
Date Posted: 29 July 2025 at 5:40am
Hello,

This is XAML code in string which loadded into tree item

    Dim xamlCodeIcon As String
    xamlCodeIcon = "<Viewbox xmlns=' http://schemas.microsoft.com/winfx/2006/xaml/presentation" rel="nofollow - http://schemas.microsoft.com/winfx/2006/xaml/presentation ' Stretch='Uniform' Width='16' Height='16'><Canvas Width='16' Height='16' Canvas.Left='0' Canvas.Top='0'><Canvas><Path Data='M15.8749,7.4702L14.1822,5.805C14.115,5.7377,14,5.7854,14,5.8805V10.5c-1.8147,-1.8304,-4.2548,-4.3794,-4.7073,-4.8048c-0.7002,-0.7,-2.4873,-1.9962,-4.3207,-1.9962c-2.8975,0,-4.9306,1.8952,-4.9306,4.6087v0.0119c0,1.2377,1.0081,4.7498,1.2357,5.5269c0.0267,0.091,0.1101,0.1535,0.2049,0.1535h1.8977c0.144,0,0.2468,-0.1393,0.2039,-0.2768c-0.4616,-1.4768,-1.3258,-4.4239,-1.3391,-5.4213c0.0031,-1.7859,1.4173,-2.4225,2.7408,-2.4225c1.0669,0,2.3542,0.9378,2.7776,1.3657l0.0331,0.0281C8.1475,7.5993,10.6116,10.0252,12.5,12H7.9043c-0.0951,0,-0.1427,0.115,-0.0755,0.1822l1.6414,1.6927c0.0801,0.0801,0.1887,0.1251,0.3019,0.1251h6.0144c0.1179,0,0.2135,-0.0956,0.2135,-0.2135V7.7721C16,7.6589,15.955,7.5502,15.8749,7.4702z' Fill='#3E79B4'/></Canvas></Canvas></Viewbox>"
    Dim res As Boolean
    res = TreeViewIcons.Icons.LoadVectorIconCode(xamlCodeIcon, 0, 16, xtpImageNormal)

Regards,
Artem Gontarenko


Posted By: Muckl
Date Posted: 29 July 2025 at 6:20am
Thank you very much for the answer. If you replace LoadBitmap in your example "Suite Controls - Treeview" with this code , res will also return TRUE, but no images will be shown.



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