This is a migrated thread and some comments may be shown as answers.

RadBusyIndicator not displayed correctly

5 Answers 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bracco
Top achievements
Rank 1
Veteran
Bracco asked on 11 Aug 2020, 01:21 PM

I have the following WPF code

<telerik:RadBusyIndicator x:Name="ThumbnailLoadingIndicator" BusyContent="Loading clip..." IsIndeterminate="True" IsTabStop="False">
   <!-- Some content -->
</telerik:RadBusyIndicator>

 

and as you can see on the attached screenshot it is not rendered properly (i.e. the spinning circles are cut on top and bottom). I have tried to use various sizes and alignment but none of them are working so I guess there is an extra property I need to tweak (or there is a bug).

FYI I am using the fluent theme.

5 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 14 Aug 2020, 10:38 AM

Hi Robert,

Thank you for the provided image and code snippet.

Looking at the set-up I can't find anything that could misplaced the content of the control. Can you specify which version of our controls are you using? Also, do you have custom styles targeting RadBusyIndicator control? Can you share the whole XAML where the control is placed?

I am looking forward to your reply.

Regards,
Dinko
Progress Telerik

0
Luis Henrique
Top achievements
Rank 1
answered on 07 Dec 2020, 04:30 PM

I'm having the exactly same issue. RadBusyIndicator is cutting top/bottom. Usually when the space it is designed is a kinda small (and not the whole window).

I'm also using Fluent theme.

Version is 2020.3.1020.45

0
Dinko | Tech Support Engineer
Telerik team
answered on 10 Dec 2020, 11:05 AM

Hello Luis Henrique,

Without reproducing this behavior, I can only guess what could be the reason behind this. Is it possible to isolate this in a standalone project? This way, I can take a closer look and debug it.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products, quickly just got a fresh new look + new and improved content, including a brand new Blazor course! Check it out at https://learn.telerik.com/.

0
Luis Henrique
Top achievements
Rank 1
answered on 10 Dec 2020, 02:06 PM

Hello,

you can see an isolated project here on OneDrive: https://1drv.ms/u/s!AqFGKcD49dDoh_1XTsDF6QBjl6UBWw?e=kQkXJ8

 

I could not attach on this forum because it only allows images.

 

Thanks


0
Dinko | Tech Support Engineer
Telerik team
answered on 15 Dec 2020, 10:45 AM

Hello Luis,

Thank you for the provided project.

You are right that the RadBusyIndicator is clipped. The control requires a specific minimal Height/Width to be drawn correctly in the Fluent theme. In your particular case, there is a Grid element inside the control template with a fixed Width. You can set it to double.NaN. You can use our ChildrenOfType<T>() extension method to get elements from your visual tree inside the control's Loaded event.

private void RadBusyIndicator_Loaded(object sender, RoutedEventArgs e)
{
    var progressBar = (sender as RadBusyIndicator).ChildrenOfType<RadProgressBar>().FirstOrDefault();
    var grid = progressBar.ChildrenOfType<Grid>().FirstOrDefault();
    grid.Width = double.NaN;
}

Keep in mind that this approach could not work in all scenarios. You could further test it and modify the approach to better fit in your application.

Regards,
Dinko
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products, quickly just got a fresh new look + new and improved content, including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
General Discussions
Asked by
Bracco
Top achievements
Rank 1
Veteran
Answers by
Dinko | Tech Support Engineer
Telerik team
Luis Henrique
Top achievements
Rank 1
Share this question
or