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

BusyIndicator changes back to Office_Black

7 Answers 107 Views
BusyIndicator
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 22 Jan 2015, 10:04 PM
I have a WPF application. I've set the theme of my RadBusyIndicator to Windows8Touch with the below code in app.xaml using the code below.

<Application.Resources>
<Style TargetType="telerik:RadBusyIndicator" >
<Setter Property="telerik:StyleManager.Theme" Value="Windows8Touch"/>
</Style>
</Application.Resources>

I show the indicator by setting and IsBusy property in my viewmodel. Everything looks and works great until the very end. About 1 second before the indicator goes away (IsBusy=false) the theme turns from Windows8Touch to Office_Black (the swirling orange donut). It should not change!

What could be the problem?

Thanks,
Mark

7 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 23 Jan 2015, 12:32 PM
Hello Mark,

We were not able to reproduce the described problem. I've prepared a sample project where is shown the RadBusyIndicator's behavior.

Can you try to reproduce the issue there and let us know how it goes.


Regards,
Masha
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mark
Top achievements
Rank 1
answered on 23 Jan 2015, 05:00 PM
Hi Masha,
Thank you for your help. I've created a simple app showing the problem and uploaded it to my OneDrive
 It appears to be related to the PdfViewer. Please let me know what you figure out.
Thanks again,
Mark
0
Masha
Telerik team
answered on 27 Jan 2015, 06:43 AM
Hello Mark,

There is another RadBusyIndicator inside of the ControlTemplate of PdfViewer which still has default OfficeBlack theme. Please check the code snippet below which demonstrates how you can disable it:

<telerik:RadPdfViewer Grid.Row="1" DocumentSource="{Binding PdfSource}">
    <telerik:RadPdfViewer.Resources>
        <Style TargetType="telerik:RadBusyIndicator">
            <Setter Property="Template" Value="{x:Null}" />
        </Style>
    </telerik:RadPdfViewer.Resources>
</telerik:RadPdfViewer>

I've also attached a demo project which demonstrates the above approach.

I hope it helps.

Regards,
Masha
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mark
Top achievements
Rank 1
answered on 27 Jan 2015, 01:06 PM
Hi Masha,

I downloaded your sample and I also made the change to my local copy. Both no longer show the OfficeBlack theme indicator at the end but also don't show the PDF in the viewer! What are we missing?

Thanks again,
Mark
0
Mark
Top achievements
Rank 1
answered on 27 Jan 2015, 01:19 PM
I've found a solution. I loaded the project in Blend. Made a copy of the template and the theme from Office_Black to Windows8Theme for the busy indicator. Once I removed the settings from your previous post it worked. Is this the way to go?



0
Masha
Telerik team
answered on 28 Jan 2015, 11:29 AM
Hello Mark,

I'm glad you've manage to resolve the problem by yourself.

One of the possible solutions is to use Blend to extract the PdfViewer's control template and modify RadBusyIndicator there, exactly as you did. In the project from my previous post I've shown how this approach can be achieved without extracting the PdfViewer's control template. I'm not sure why PDFViewer disappears on your side when you tried this approach. Did you observe this behavior in the attached project?

Regards,
Masha
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Mark
Top achievements
Rank 1
answered on 28 Jan 2015, 12:49 PM
Hi Masha,

Yes the behavior was the same in your attached project. I'm not sure why the PdfViewer disappears when doing it that way. The good news is your idea prompted me to look at the control template in Blend that led me to the solution.

Thanks again,
Mark
Tags
BusyIndicator
Asked by
Mark
Top achievements
Rank 1
Answers by
Masha
Telerik team
Mark
Top achievements
Rank 1
Share this question
or