How can I add a Path, that has been defined in the XAML ResourceDictionary, multiple times to a WPF form at runtime?

前端 未结 3 1305
不知归路
不知归路 2021-02-20 04:42

I have a defined path in XAML:


    
        

        
3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 05:11

    There's an easier, built-in way to do this. Set x:Shared="False" on the resource. This will allow it to be reused. Then use it as many times as you want.

    
        
            
        
    
    

提交回复
热议问题