Jump to content

UriProperty and ImageProperty


Recommended Posts

UriProperty

 

The UriProperty crashs paint.net if only the basic constructor is used: new UriProperty(PropertyNames.UriProperty)

 

image.png.d4b6ea0f01c596b759fa5cd2eff092e6.png

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.

 

 

 

 

 

midoras signature.gif

Link to comment
Share on other sites

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?

PdnSig.png

Plugin Pack | PSFilterPdn | Content Aware Fill | G'MICPaint 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

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.

 

midoras signature.gif

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...