可以使用system官方库来设置参数
xmlns:system="clr-namespace:System;assembly=mscorlib"
<Window.Resources> <system:Double x:Key="ButtonWidth">90system:Double> Window.Resources>
<Button Width="{StaticResource ButtonWidth}"/>
京公网安备 11010502049817号