Bug in SampleBrowser ImageLoader

Bars for WPF Forum

Posted 2 years 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 2 years ago]

Comments (2)

Posted 2 years 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 2 years ago]


Actipro Software Support

Answer - Posted 2 years 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.5) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.