RadBusyIndicator Changing theme style and not showing busy state

1 Answer 37 Views
BusyIndicator Styling
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Psyduck asked on 16 Jun 2021, 10:05 AM
I'm using the implicit Fluent theme.

If you look at my ResourceTemplate.xaml, there is a Fluent theme and a Transparent theme.
Telerik.Windows.Controls only applies the transparent theme.

Is there a way to change only BusyIndicator to Transparent theme?
I want the main window to be a fluent theme.
(I know that Style.Manager shouldn't be for implicit styles.)

If you click the button, BusyIndicator opens a new window and works. But there is a problem.
BusyContent is incremented by 1 only internally.
However BusyIndicator is not displayed, only blank.
What's wrong?

Please check my source for details.

Thank you.

1 Answer, 1 is accepted

Sort by
1
Accepted
Dinko
Telerik team
answered on 21 Jun 2021, 06:12 AM

Hello KIM,

Thank you for the provided project.

The LoadingView freeze because the BusyContent updates constantly. To show some progress to the user you can use the ProgressValue property. You can try the approach described in the Custom Busy Content help article. Now to have a different theme for the RadBusyIndicator control, you can merge the Controls dll Transparent theme in the resource section of the LoadingView window. The rest of the resources for the Fluent theme can be merged in the App.xaml file.

<Application x:Class="WpfApp123.App"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:local="clr-namespace:WpfApp123"
             StartupUri="MainWindow.xaml">
    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/WpfApp123;component/ResourceTemplate.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>

// LoadingView
<Window.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/WpfApp123;component/NoXaml/Transparent/Telerik.Windows.Controls.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Window.Resources>

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
BusyIndicator Styling
Asked by
Psyduck
Top achievements
Rank 4
Bronze
Bronze
Iron
Answers by
Dinko
Telerik team
Share this question
or