【发布时间】:2013-02-07 07:58:04
【问题描述】:
我正在尝试制作一个可移植的 silverlight 用户控件,以便在 2 个单独的项目中使用:一个是 WP8 项目,另一个是 Windows 应用商店。
在他们两个中,我都使用 xaml/C#,并基于 silverlight。但是我创建的 silverlight 控件只能在 WP8 中使用,而不能在 Windows Store 中使用。
cannot convert from 'Controls.ProfileBox' to 'Windows.UI.Xaml.UIElement'
是否可以创建一个silverlight 类库,该类库具有可在两个项目中使用的控件?
【问题讨论】:
标签: silverlight windows-phone-7 user-controls portable-class-library