BerndK / SvgToXaml

Smart Tool to view svg-files and convert them to xaml for use in .NET
Other
886 stars 164 forks source link

How to use in code behind #27

Closed hupo376787 closed 2 years ago

hupo376787 commented 2 years ago

Hi, I found we can use in xaml like: <Image Source="{StaticResource cloud_3_iconDrawingImage}"/> But how to use in code behind,thanks.

BerndK commented 2 years ago

Hi, this is a general .net topic which is not really related to SvgToXaml, please use another platform like stackoverflow for this.

hupo376787 commented 2 years ago

Thanks, bro. I found it. https://stackoverflow.com/questions/14387350/convert-drawingimage-to-bitmapimage