Page 1 of 1

Custom symbols

Posted: Mon Nov 14, 2022 9:47 am
by Bernd Welter
Hi Oli,

one of my partners is familiar with the standard symbols we provide with PTV xServer.NET and which belong to Ptv.XServer.Controls.Map.Symbols.

Is it possible to create custom symbols including flexible size and colors? What is needed for that?

Bernd

Re: Custom symbols

Posted: Mon Nov 14, 2022 10:47 am
by Oliver Heilig
Hi Bernd,

yes you can design arbitrary elements in Xaml and bind properties like colors and texts to it. See this demo for an actual implementation.

Oli
Custom Xaml design
Custom Xaml design

Re: Custom symbols

Posted: Mon Nov 14, 2022 11:51 am
by Bernd Welter
Just found further URLs in an old chat - maybe these documents could also help?

The following approach is base on "SVG icons that are converted to XAML": And it is also possible to display images instead (though this is less beautiful)