RadPane disappear from dock when application theme is updated WPF

1 Answer 23 Views
Docking
Chris
Top achievements
Rank 1
Chris asked on 08 Feb 2022, 08:34 PM

I am trying to update themes in a WPF application at run time.   The application is using the no XAML dlls.  The theme is being updated by replacing the resource dictionaries according to Theme change instructions.

When the resource dictionaries are replaced the theme updates for the entire application but all the tabs in the dock disappear.  New tab can be added to the Items Observable collection and they will appear in the dock.

 

        <telerik:RadDocking x:Name="Dock" 
                            AllowDragReorder="True"
                            PanesSource="{Binding Items, UpdateSourceTrigger=PropertyChanged}"
                            CloseButtonPosition="InPane">
            <telerik:RadDocking.DockingPanesFactory >
                <telerik:DockingPanesFactory />
            </telerik:RadDocking.DockingPanesFactory>
        </telerik:RadDocking>


1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 11 Feb 2022, 10:05 AM

Hello Chris,

I have created a sample project using the DockingPanesFactory approach for generating panes, as well as the NoXaml assemblies, however, I was not able to observe the specified behavior. On my end, the RadDocking control instance changes its theme accordingly and the defined panes do not disappear. 

In addition, may I ask if there are any custom styles defined inside your application that would target the RadPane element? This is because when the theme is switched at runtime, certain errors may appear if, for example, if the default control template of the is edited. You could refer to our Switching Custom Styles with Themes at Runtime article from our documentation for more information on this topic. 

With that said, I have attached a sample project for you to test, so, could you give it a try and let me know if I am missing something?

Regards,
Stenly
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
Docking
Asked by
Chris
Top achievements
Rank 1
Answers by
Stenly
Telerik team
Share this question
or