You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Has anyone tried to change text of SvgTextSpan dynamically? I'm using SvgViewer App as a test field. In open_Click function I add a search code for a uniq id and try replace it with some magic string "mariola"
I saw text change in debugger but it renders text previously read in open function.
I know that it is possible to parse svg as xml, change some values in it and use SvgDocument::Open(Stream stream). But this does not seems to be an elegant way.
The text was updated successfully, but these errors were encountered:
I have found the problem in SvgTextBase::Text setter. I had to add code for setting it's content for all content nodes. I do not know if this is good solution but it works in my case.
publicvirtualstringText{
get {returnbase.Content;}
set
{foreach(SvgContentNode node inthis.GetContentNodes()){if(node.Content ==this.Content)
node.Content =value;}base.Content =value;this.IsPathDirty =true;this.Content =value;}}
Hi,
Has anyone tried to change text of SvgTextSpan dynamically? I'm using SvgViewer App as a test field. In open_Click function I add a search code for a uniq id and try replace it with some magic string "mariola"
I saw text change in debugger but it renders text previously read in open function.
I know that it is possible to parse svg as xml, change some values in it and use SvgDocument::Open(Stream stream). But this does not seems to be an elegant way.
The text was updated successfully, but these errors were encountered: