How can I define a variable in XAML?

后端 未结 5 900
灰色年华
灰色年华 2020-11-30 02:32

I have the following two buttons in XAML:

5条回答
  •  [愿得一人]
    2020-11-30 03:02

    Similiar to Sorskoot's answer, you can add a thickness resource to use, thereby defining each margin direction independently

    
        
    
    

    Then just use the Thickness as the Margin:

提交回复
热议问题