How can I define a variable in XAML?

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

I have the following two buttons in XAML:

5条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 02:41

    In .NET Core @Sorskoot's answer was working, but produced a warning. So instead I used this namespace declaration:

    xmlns:system="clr-namespace:System;assembly=System.Runtime"
    

提交回复
热议问题