BusyIndicator changes back to Office_Black

8 posts, 0 answers
  1. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 22 Jan 2015 Link to this post

    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
  2. Masha
    Admin
    Masha avatar
    355 posts

    Posted 23 Jan 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 23 Jan 2015 in reply to Masha Link to this post

    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
  5. Masha
    Admin
    Masha avatar
    355 posts

    Posted 27 Jan 2015 Link to this post

    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.

     
  6. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 27 Jan 2015 in reply to Masha Link to this post

    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
  7. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 27 Jan 2015 in reply to Masha Link to this post

    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?



  8. Masha
    Admin
    Masha avatar
    355 posts

    Posted 28 Jan 2015 Link to this post

    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.

     
  9. Mark
    Mark avatar
    16 posts
    Member since:
    Sep 2012

    Posted 28 Jan 2015 in reply to Masha Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready