Reuse path object in XAML

后端 未结 6 710
醉话见心
醉话见心 2021-01-04 05:46

I have a Path (a star figure):



        
6条回答
  •  [愿得一人]
    2021-01-04 06:06

    I defined a path in separate XAML document and then reused it as content of a ContentControl.

    In the resource file or resource dictionary:

    
    

    In the WPF control:

    
    

提交回复
热议问题