WPF,请问这个资源怎么引用?
<Window.Resources>
<Button x:Key="aa" Background="Red"/>
</Window.Resources>
<Grid>
</Grid>
上面有一个button资源,请问,在Grid里面,如何引用资源,并设置button的Foreground属性。
...全文
盲盒赢 定制羽绒服
开启惊喜盲盒,抽取你的专属好礼
✦
<Window.Resources>
<Button x:Key="aa" Background="Red"/>
</Window.Resources>
<Grid>
</Grid>