Bug in SampleBrowser ImageLoader

Bars for WPF Forum

Posted 1 year ago by Steve Nicholson
Version: 23.1.1
Platform: .NET 5.0
Environment: Windows 10 (32-bit)
Avatar

I'm posting this in the Bars forum because that's the GettingStarted I'm following, but this is applicable to anything in the SampleBrowser project that uses the ImageLoader class. I think there's a bug in this code:

public static ImageSource GetOther(string fileName)
=> GetOther("/Other/"+ fileName, freeze: true);

public static ImageSource GetOther(string fileName, boolfreeze)
=> LoadImageResource("/Other/"+ fileName, freeze);

Code that calls GetOther with one argument (e.g. ApplicationCommands.CoverPage) will return "/Other//Other/fileName".

[Modified 1 year ago]

Comments (2)

Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Steve,

Thanks for reporting this.  We actually just ran into it several hours ago and are planning to roll out a new maintenance release to resolve it and one other thing hopefully tomorrow.

The first method's code should be:

GetOther(fileName, freeze: true);

[Modified 1 year ago]


Actipro Software Support

Answer - Posted 1 year ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Steve,

We deployed a new version just now that resolves this issue.  Thanks!


Actipro Software Support

The latest build of this product (v24.1.3) was released 24 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.