我试着创造
String
,
Int32
资源如下,但不起作用。我听到一个错误,说这个值不能转换。
如果你知道怎么做,请帮忙。
<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:sys="clr-namespace:System;assembly=mscorlib"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<sys:Int32 x:Key="MyKey">1</sys:Int32>
</ResourceDictionary>
<Label Content="abb" BorderThickness="{StaticResource MyKey}" />