Skip to content

Grouping with ProvideProfileAttribute #237

Answered by reduckted
reduckted asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks to @JoshuaBStevens, I was able to get this working how I wanted. ❤️

As he pointed out, there's a SupportsProfiles property on the ProvideOptionPage attribute that will give me the behavior that I wanted.

By setting the SupportsProfiles property to true, I was able to completely do away with the BaseOptionModel base class and just define the properties on each DialogPage. Visual Studio will load and save those properties automatically.

I'm still a bit confused about what Visual Studio actually does when loading and saving those properties, because it seems to be able to export settings without actually creating an instance of the DialogPage (no breakpoints were hit anywhere in the c…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
7 replies
@JoshuaBStevens
Comment options

@JoshuaBStevens
Comment options

@reduckted
Comment options

@reduckted
Comment options

@reduckted
Comment options

Comment options

You must be logged in to vote
1 reply
@JoshuaBStevens
Comment options

Comment options

You must be logged in to vote
1 reply
@madskristensen
Comment options

Answer selected by reduckted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants