How to do asynchronous image binding?

1 Answer 129 Views
BusyIndicator ImageEditor
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Psyduck asked on 26 Jul 2021, 08:32 AM | edited on 26 Jul 2021, 08:35 AM

Hello.

 

I tried binding using Rad Image Editor. However, only white images are visible.

1. My provided source compares the normal BitmapSource binding and the RadBitmap binding, and you can see that the normal BitmapSource is bound and the RadBitmap is not.

What's my problem?


2. I've heard that it's not good to put RadBusyIndicator in the Loaded Event when using it. (In general, when using BusyIndicator, not telerik)

So, after Show(modeless), I used async Task to process the initial setting data.

Is this method okay for modeless limitation?


I Using Telerik Version 2021.2.719.45 XAML [No theme specified (default)]

 

Thanks.

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 28 Jul 2021, 11:39 AM

Hello KIM,

To show the RadBitmap image properly, you can dispatch the setting of the RadImage property in the Initial() method. For example:

 MainWindow.Dispatcher.BeginInvoke(new Action(() =>
                {
                    RadImage = new Telerik.Windows.Media.Imaging.RadBitmap(OriginImage);
                }));

About your second question, the approach seems okay at first sight.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
commented on 28 Jul 2021, 12:37 PM | edited

Thanks it has been resolved.

Any way I can figure out what's wrong with horizontal scrolling?
https://www.telerik.com/forums/how-to-set-the-horizontal-scroll-mouse-wheel-movement-dependency#1528285
Martin Ivanov
Telerik team
commented on 02 Aug 2021, 08:41 AM

Tags
BusyIndicator ImageEditor
Asked by
Psyduck
Top achievements
Rank 5
Bronze
Bronze
Bronze
Answers by
Martin Ivanov
Telerik team
Share this question
or