0

When I use the WPF Extended Toolkit BusyIndicator in any other application, I have no problems. Using it in my current application, the text is cut off. I have been playing around with the properties on the BusyIndicator. Here is the xaml:

<xctk:BusyIndicator IsBusy="True" Panel.ZIndex="1000"/>

I wanted to post a picture so you could see what it looks like. The "Please Wait..." text is too low and the bar is laying on top of it. Has anyone experienced this before? I am stumped on what to do. I can't figure out how to change the height of the content inside the box, if that is even the issue.

Edit:

It currently displays as the following:

enter image description here

But I want it to display without the text being covered:

enter image description here

The designer displays it how I want it to display but the application, while running, displays it as shown in image one.

Community
  • 1
  • 1
Maderas
  • 231
  • 2
  • 14

2 Answers2

2

I think that your problem is that you have changed the default textblock size. But you can also fix with the BusyContentTemplate For example I make the text bigger and red:

        <xctk:BusyIndicator IsBusy="True" Panel.ZIndex="1000" >
            <xctk:BusyIndicator.BusyContentTemplate>
                <DataTemplate>
                    <TextBlock Foreground="Red" FontSize="15">Please Wait</TextBlock>
                </DataTemplate>
            </xctk:BusyIndicator.BusyContentTemplate>
         </xctk:BusyIndicator>

You can also change the textblock for whatever you want.

I hope this can help you.

ganchito55
  • 3,559
  • 4
  • 25
  • 46
0

I discovered the issue. The underlying datatypes in the WPF Extended Toolkit's BusyIndicator is a grid. One of the grid's properties were being set in a global style file that I was unaware of...

Maderas
  • 231
  • 2
  • 14