Katai Posted February 13, 2013 Share Posted February 13, 2013 I'm pretty sure this is supported, but I've seen zero sample code on how to go about this? Could someone give me a snip of code to help get me started? Quote Link to comment Share on other sites More sharing options...
midora Posted February 13, 2013 Share Posted February 13, 2013 IndirectUI and PropertyBasedEffect are connected strongly. Quote Link to comment Share on other sites More sharing options...
Katai Posted February 13, 2013 Author Share Posted February 13, 2013 I... don't know what that means Quote Link to comment Share on other sites More sharing options...
midora Posted February 13, 2013 Share Posted February 13, 2013 Sorry, about this compact answer. PropertyBasedEffect provides the method OnCreatePropertyCollection() which allows you to return properties as IndirectUi objects plus rules how these objects depend on each other. There is nothing like this for filetype plugins. But maybe I'm wrong.Rick would say: Use Reflector to check ;-) Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted February 13, 2013 Share Posted February 13, 2013 Umm, yes there is midora. It's called PropertyBasedFileType. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
midora Posted February 13, 2013 Share Posted February 13, 2013 Thanks for the tip, Glad to be wrong. Never seen an example or documentation using it. So you can derive you filetype from PropertyBasedFileType and add properties (indirectUI controls) in OnCreateSavePropertyCollection(). Just to answer the initial question. Quote Link to comment Share on other sites More sharing options...
Katai Posted February 13, 2013 Author Share Posted February 13, 2013 Thanks. I'll give this a try. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.