We have documents that use RadDocumentPane and we serialize them on shutdown so we can restore them when the application restarts. The problem is that floating windows don't get their titles set.
While the application is running, forms can be dragged outside and left floating, then redocked and the titles work fine. The issue occurs after startup and the forms are restored from deserialization, floating windows end up with no title. Redocking them works but the tab has no text.
From what I can see of the XAML there are no errors reported for binding to Header or Title, yet the same code works for docked windows but not for floating windows.
3 Answers, 1 is accepted
Hello Pete,
Thank you for the shared information.
I tried to reproduce this scenario on my end in a sample project, however I am afraid that I was not able to do so. That is why I am attaching the project that I used for testing purposes. May I ask you to check it out and see how it differs from the setup on your end?
Should you need any further assistance, may I ask you to modify the shared project in order to demonstrate the described behavior and send it back? This will hopefully allow me to investigate further and better assist you.
I am looking forward to your reply.
Regards,
Vladimir Stoyanov
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/.
I've extended your sample and added some code that I felt was relevant, however wasn't able to reproduce the issue.
What I did find is that if I remove the SetSerializationTag call, I can get the tab to go blank I'm guessing because serialization cannot match the documents. I'm going to look into that a bit further.
Thanks for your help!
Thank you for the shared project. You are correct that when the SerializationTag is changed prior to the loading a new instance of a RadDocumentPane is created. It does not have its DataContext set and that is why the created document pane has no header.
Feel free to take your time investigating the scenario. Should you manage to replicate the observed on your end behavior, please send over the updated project and I will gladly investigate further.
We did find an answer, by accident, and can't explain why it makes it work!
This:
<Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}">
<Style.Triggers>
<Trigger Property="IsSingleItem" Value="False">
<Setter Property="TabStripPlacement" Value="Top"/>
</Trigger>
</Style.Triggers>
</Style>
was changed to this:
<Style TargetType="telerik:RadPaneGroup" BasedOn="{StaticResource RadPaneGroupStyle}">
<Setter Property="TabStripPlacement" Value="Top"/>
</Style>
I am glad to hear that you were able to resolve the scenario. It is difficult to say what might be the reason for the observed on your end behavior.
Of course, I will be happy to investigate, if you can share a sample project demonstrating the setup.