How to reference filter from image in code behind #847
Unanswered
QadiymStewart
asked this question in
Q&A
Replies: 1 comment
-
I use this helper function: public static T? GetReference<T>(this SvgElement svgElement, Uri? uri) where T : SvgElement
{
if (uri is null)
{
return default;
}
var svgElementById = svgElement.OwnerDocument?.GetElementById(uri.ToString());
if (svgElementById is { })
{
return svgElementById as T;
}
return default;
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to reference filter in code behind. Trying to apply the filter to the image. Builing the svg from code. My filter has an id of ID = "a". How to I reference it in the SVGImage -> Filter = new Uri(),
Beta Was this translation helpful? Give feedback.
All reactions