Reputation: 23
I want to have a resource of type double, (or strokethickness as a matter of fact). How I can achieve that?
Upvotes: 1
Views: 184
Reputation: 128136
Declare a XAML namespace for the mscorlib
assembly:
<Window ... xmlns:sys="clr-namespace:System;assembly=mscorlib">
<Window.Resources>
<sys:Double x:Key="thickness">5</sys:Double>
</Window.Resources>
...
</Window>
Upvotes: 3