The property 'ContentStringFormat' does not exist on the type
-
Hi! i have a problem with ContentStringFormat i get an error The property 'ContentStringFormat' does not exist on the type 'ContentControl' in the XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. The example i follow uses this namespace, is there an other namespace i should use? Why do i get this error?
<UserControl
...
...
...
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"><StackPanel Margin="2,2,2,2">
<ContentControl Content="{TemplateBinding IndependentValue}"
ContentStringFormat="{}{0:MMMM d, yyyy}" /><ContentControl Content="{TemplateBinding DependentValue}"
ContentStringFormat="Visits {0:###,###,###}" /></StackPanel>
-
Hi! i have a problem with ContentStringFormat i get an error The property 'ContentStringFormat' does not exist on the type 'ContentControl' in the XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. The example i follow uses this namespace, is there an other namespace i should use? Why do i get this error?
<UserControl
...
...
...
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"><StackPanel Margin="2,2,2,2">
<ContentControl Content="{TemplateBinding IndependentValue}"
ContentStringFormat="{}{0:MMMM d, yyyy}" /><ContentControl Content="{TemplateBinding DependentValue}"
ContentStringFormat="Visits {0:###,###,###}" /></StackPanel>
Is your project targeting the .NET 3.5 (SP1) or .NET 4 runtime? If you are using VS2008 and the plain vanilla .NET 3.5, you won't see this property as it was added in .NET 3.5 SP1.
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads
-
Is your project targeting the .NET 3.5 (SP1) or .NET 4 runtime? If you are using VS2008 and the plain vanilla .NET 3.5, you won't see this property as it was added in .NET 3.5 SP1.
I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads
-
You should have said in your post that it was Silverlight rather than WPF. AFAIK, Silverlight does not support
ContentControl.ContentStringFormat
. This is a WPF feature.I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads
-
You should have said in your post that it was Silverlight rather than WPF. AFAIK, Silverlight does not support
ContentControl.ContentStringFormat
. This is a WPF feature.I'm not a stalker, I just know things. Oh by the way, you're out of milk.
Forgive your enemies - it messes with their heads