Silverlight: Use Margin in ResourceDictionary?

If you create a resource dictionary with Visual Studio, the default namespace is mapped such that you do not need a prefix before Thickness.

Up vote 0 down vote favorite share g+ share fb share tw.

I try to save an margin value in a resourcedictionary. Something like that: xmlns:systemwindows="clr-namespace:System. Windows;assembly=System.Windows.

Dll" ... 0,2,2,0 0,2,2,0 Later I should be able to do something like that: But when I compile the resouce dictionary I get: Error 1 The tag 'Thickness' does not exist in XML namespace 'clr-namespace:System. Windows;assembly=System.Windows. Dll'.

\XAML\Style.Common.Values. Xaml Error 2 The type 'systemwindows:Thickness' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built.

\XAML\Style.Common.Values. Xaml At http://msdn.microsoft.com/en-us/library/system.windows.thickness%28v=vs.95%29.aspx you can see that System. Windows should be the right namespace.

Why isnt he finding the Class Thickness? Greetings .net silverlight xaml resourcedictionary link|improve this question asked Jul 20 '11 at 9:25Briefkasten52.

If you create a resource dictionary with Visual Studio, the default namespace is mapped such that you do not need a prefix before Thickness: 0,2,2,0 i.e. The URL "schemas.microsoft.com/winfx/2006/xaml/pr... maps to the System. Windows namespace.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions