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}" />