weixin_39837607
weixin_39837607
2020-12-29 17:47

Light up VB WinForms/WPF property pages

WinForms/WPF have different property pages for VB, we should light them up based on capabilities as called out in https://github.com/dotnet/project-system/issues/4248.

该提问来源于开源项目:dotnet/project-system

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

10条回答

  • weixin_39837607 weixin_39837607 4月前

    I don't know what property we're talking about, so hard to provide input.

    点赞 评论 复制链接分享
  • weixin_39815943 weixin_39815943 4月前

    The MyApplication property, part of VBProjectProperties3. Returned here in legacy, its an instance of our MyApplicationManager

    点赞 评论 复制链接分享
  • weixin_39837607 weixin_39837607 4月前

    How would an enum property help here? From a quick look, this would be a data source that returns an instance of IVsMyAppManager.

    点赞 评论 复制链接分享
  • weixin_39815943 weixin_39815943 4月前

    It might not, just thinking out loud :)

    点赞 评论 复制链接分享
  • weixin_39837607 weixin_39837607 4月前

    It also does for C#: https://github.com/dotnet/project-system/issues/70.

    点赞 评论 复制链接分享
  • weixin_39940913 weixin_39940913 4月前

    See also #70.

    点赞 评论 复制链接分享
  • weixin_39940913 weixin_39940913 4月前

    Doh, same as 's comment from Dec 11th.

    点赞 评论 复制链接分享
  • weixin_39815943 weixin_39815943 4月前

    I've started looking into this and it seems like the first thing to solve is the MyApplication property, which we don't currently support and can't be represented in a XAML rule. Even the behaviour of the current VB application page (which is the WinForms page) doesn't match legacy.

    点赞 评论 复制链接分享
  • weixin_39837607 weixin_39837607 4月前

    Even when we have custom data sources applied to a rule?

    点赞 评论 复制链接分享
  • weixin_39815943 weixin_39815943 4月前

    Thats what I'm looking at right now. Looks like we can either define it as an EnumProperty and use a custom provider, or define a StringProperty and specify a custom persistence provider and have that do the work. Either way is a bit hacky sounding.

    点赞 评论 复制链接分享

相关推荐