Correct me if I am wrong, but a RadToolbar control needs to be shown, only if the pane is undocked? And if the pane is not floating, only the toolbar of the MainWindow should be visible?
If that is the case, you can set a RadToolbar control inside the desired pane and then create a custom style to check the floating state of the pane. The following code snippets show the mentioned style:
Since the RadToolbar control is inside of the pane, the Visibility property will change depending on the IsFloating property of the pane. Then set the style to the toolbar as follows:
That said, I have prepared a sample project implementing this approach. Please let me know if this works for you or if I have misunderstood your requirement in any way.
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/.