Using a XAML file as a vector Image Source

后端 未结 3 1705
离开以前
离开以前 2020-12-03 03:24

I would like to be able to use vector graphics, preferably defined in XAML, as the Source of an Image control, just like I can currently use a raster image like a PNG. That

3条回答
  •  春和景丽
    2020-12-03 03:46

    You can simply reference your vector graphics as StaticResources:

    
    

    Store the images in a ResourceDictionary as DrawImage's. Expression Blend can help you generate this stuff:

    
    
       
          
             
                
                   
                   
                          :
                
             
         
       
    
    
    

提交回复
热议问题