![]() |
ImageManager LoadVectorIconCode |
Post Reply
|
| Author | |
Muckl
Newbie
Joined: 23 July 2018 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
Topic: ImageManager LoadVectorIconCodePosted: 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. |
|
![]() |
|
agontarenko
Moderator Group
Joined: 25 March 2016 Status: Offline Points: 332 |
Post Options
Thanks(0)
Quote Reply
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' 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
|
|
![]() |
|
Muckl
Newbie
Joined: 23 July 2018 Status: Offline Points: 9 |
Post Options
Thanks(0)
Quote Reply
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.
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |