SvgImageSource to SymbolIcon RRS feed

  • Question

  • private SymbolIcon  lastactionicon = new svgimagesource(new uri("assets/login.svg"));

    How do i convert this?

    Thursday, July 11, 2019 7:44 AM

All replies

  • Please check this official document  https://docs.microsoft.com/en-us/uwp/api/Windows.UI.Xaml.Controls.SymbolIcon  

    Represents an icon that uses a glyph from the Segoe MDL2 Assets font as its content. The most common way to specify the icon for an app bar button is to use one of the standard glyphs provided by the Segoe MDL2 Assets font, as specified in the Symbol enumeration. 

     SymbolIcon does not provide API to custom content, We could not convert SvgImageSoure to SymBolIcon. If you do want to use SvgImageSource, we suggest use Image control directly.



    Thursday, July 11, 2019 9:18 AM