Skip to main content
Home Forums Silverlight Programming Visual Studio & Silverlight Development Tools UIPropertyMetadata not found
1 replies. Latest Post by amit_pal1979 on September 29, 2008.
(0)
royhiggs
Member
2 points
12 Posts
09-28-2008 9:26 PM |
When a create a dependency property and call DependencyProperty.Register I tried to use the following: public static readonly DependencyProperty ImageSourceProperty =
public
DependencyProperty.Register("ImageSource", typeof(string), typeof(ImageButton), new UIPropertyMetadata(""));
However, I get an error in both VS2008 and Blend that UIPropertyMetadata could not be found. Does UIPropertyMetadata not exist anymore?
Exact error message is and I do have System.Windows as a using statement.
The type or namespace 'UIPropertyMetadata' could not be found (are you missing a using directive or an assembly reference?)
amit_pal...
Participant
1150 points
201 Posts
09-29-2008 12:34 AM |
In WPF, we need to use UIPropertyMetaData however in SIlverlight Beta2 we have to use 'PropertyMetaData'.
Please mark this post as answered if the response was helpful