This is a migrated thread and some comments may be shown as answers.

Unpinned RadPane - How to get the width of the header area

1 Answer 95 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Miles
Top achievements
Rank 1
Miles asked on 24 Apr 2018, 02:58 PM

Hi,

I have a titletemplate for the headers of RadPanes which contain my own TextBlock and Button elements. I need the button to be docked right next to the "close" pane button (if the RadPane is docked and unpinned left).

If the user clicks on the tab to animate the RadPane to slide open, how do I get the width of the titletemplate to force e.g. a DockPanel to fill the entire area? Otherwise my button just positions itself next to my TextBlock like in a StackPanel scenario.

 

Thank you.

M.Young

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 27 Apr 2018, 11:07 AM
Hello Miles,

The RadDocking control exposes a FlyoutBehavior property which can be used to modify the flyout of the control's AutoHideArea. You can read more about this behavior in the FlyoutBehavior help article in our documentation.

In your case, you can create custom FlyoutBehavior. Basically, you can create a custom class which implements the IFlyoutBehavior interface. In the OnPaneMouseLeftButtonDown method, you can get the currently opened pane from the parameters and modify its header. There is an SDK example in our GitHub repository which demonstrates how you can create custom FlyoutBehavior for the RadDocking control.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
Docking
Asked by
Miles
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or