Use an External ResourceDictionary in a WindowsPhone 7 app

前端 未结 3 2047
温柔的废话
温柔的废话 2020-12-30 09:15

I am trying to create an ResourceFile Called DataTemplate.xaml in an external dll and use that in a WP7 page. When I do the following in the header of my Page I get an erro

3条回答
  •  礼貌的吻别
    2020-12-30 10:01

    Silverlight doesn't support pack URIs. It's a WPF feature.

    If you examine the type of the Source property for the Image object in Silverlight it is Uri. But in WPF the source is a dependency property with a type of ImageSource.

提交回复
热议问题