midora Posted March 4, 2021 Share Posted March 4, 2021 UriProperty The UriProperty crashs paint.net if only the basic constructor is used: new UriProperty(PropertyNames.UriProperty) Is there a list what can be configured? I just like to complete OBL so that it supports all the new property variants. Suggestions: - Show a focus rectangle if keyboard is used to tab to the property - Add a contextmenu to copy the URL ImageProperty There is also this ImageProperty. Any info available? I couldn't get it to work. new ImageProperty(PropertyNames.ImageProperty, ImageResource.FromImage(StaticImage)) throws a key not available exception. Quote Link to comment Share on other sites More sharing options...
null54 Posted March 5, 2021 Share Posted March 5, 2021 7 hours ago, midora said: The UriProperty crashs paint.net if only the basic constructor is used: new UriProperty(PropertyNames.UriProperty) I submitted a PR to fix that crash. 7 hours ago, midora said: Is there a list what can be configured? The only thing that can be configured for the UriProperty is the URI: new UriProperty(PropertyNames.LinkLabel, new Uri("https://www.getpaint.net")) 7 hours ago, midora said: There is also this ImageProperty. Any info available? I couldn't get it to work. As far as I can tell paint.net does not use that property anywhere, it may have been added but never fully implemented. I am not sure what it was intended to do, display an image in a PictureBox? Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
midora Posted March 5, 2021 Author Share Posted March 5, 2021 47 minutes ago, null54 said: The only thing that can be configured for the UriProperty is the URI: new UriProperty(PropertyNames.LinkLabel, new Uri("https://www.getpaint.net")) So it's a void property not providing a value. Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted March 5, 2021 Share Posted March 5, 2021 I suppose I should remove ImageProperty 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...
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.