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
<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
0
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
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
0
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:
I've also attached a demo project which demonstrates the above approach.
I hope it helps.
Regards,
Masha
Telerik
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
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
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
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
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