.NET Framework 更新程序组件和 WPF
我正在尝试向我的 wpf 应用程序添加自动更新程序,并且喜欢这篇文章 我尝试将更新程序组件添加到我正在使用的 VS 2008 的工具箱中,但似乎无法将其添加到 wpf 项目工具箱中。我怀疑即使我添加了它,我也会在 wpf 项目工具箱中看到它来自 winform 工具箱。所以现在我有点困惑。
任何人都可以透露一些信息。感谢您的阅读
I'm trying to do add an auto-updater to a wpf application of mine and liked this article
and i've tried to add the updater component to the toolbox of the VS 2008 that i'm using but it seems it cannot be added to the wpf project toolbox.I doubt i would see it the wpf project toolbox even though i added it from winform toolbox.So right now i'm a bit confused.
Can anyone shed some light.thanks for reading
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信确定某些内容是否可以出现在工具箱中的组件实现对于 WinForms 和 WPF 来说是不同的 - 这就是为什么您在 WPF 工具箱中看不到 WinForms 控件的原因。另外,这个组件相当旧,所以它不会真正支持 WPF 版本。
也就是说,没有什么可以阻止您在代码中创建一个
AppUpdater
(我想,我没有仔细研究它),而不让设计者为您添加一个。I believe the Component implementation that determines if something can appear in the toolbox is different for WinForms and WPF - which is why you don't see WinForms controls in the WPF toolbox, for example. In addition, this component is pretty old, so it's not really going to have the WPF version supported.
That said, nothing should prevent you from just creating an
AppUpdater
(I think, I didn't look at it too thoroughly) in your code without having the designer add one for you.