Advanced Forum Search Results
-
To make an added namespace work in the Application.Resources section, it seems that you need to repeat the namespace declaration in the element itself:
<sys:Uri x:Key="str" xmlns:sys="cls-namespace:System;assembly=System">bla</sys:Uri>
Then it works for me.. I am still on SL2.
-
Hmm answering my own post, tacky.. for those who run into the same problem, there is a simple workaround (thanks Coolio):
Dont define the resources as string, define them as Uri. Note that System.Uri is in System.dll, not in mscorlib.
...
-
Hi, I added a custom DependencyProperty of type Uri (with the UriTypeConverter) to my custom control. Now I want to set its value in XAML to a static resource. This fails with AG_E_PARSER_BAD_PROPERTY_VALUE. Does anyone know if this is a bug or a feature?
My code:
public class MyControl : Control
{
public static readonly ...
-
I think Rich reported a real bug. And not only in the VS designer, but this error also breaks the intended purpose: using a string resource defined in App.xaml inside your Page.xaml. The error is not in the build, but in the parsing of Page.xaml.
To reproduce:
start VS2008SP1
create a new Silverlight application
in your ...