Halo, we have a serious problem with RadDocking when we use custom header template.
If we use in DocumentHost custom template for header of RadPane and there is Button in the RadPane header, after click on this button docking operation is imediatelly started and the RadPane became floating :-(
There is sample code:
After we click on the button "Butt", RadPane is folowing mouse cursor until first click. Please help....
Thank you.
If we use in DocumentHost custom template for header of RadPane and there is Button in the RadPane header, after click on this button docking operation is imediatelly started and the RadPane became floating :-(
There is sample code:
<
Window
x:Class
=
"DarDataFormTest.MainWindow"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
xmlns:local
=
"clr-namespace:DarDataFormTest"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Window.Resources
>
<
RoutedCommand
x:Key
=
"CommitCommand"
/>
<
RoutedCommand
x:Key
=
"CancelCommand"
/>
<
local:Converter
x:Key
=
"conv"
/>
</
Window.Resources
>
<
Grid
>
<
telerik:RadDocking
x:Name
=
"radDocking1"
BorderThickness
=
"0"
Padding
=
"0"
>
<!--DocumentHost-->
<
telerik:RadDocking.DocumentHost
>
<
telerik:RadSplitContainer
>
<
telerik:RadPaneGroup
>
<
telerik:RadDocumentPane
Title
=
"Description"
>
<
telerik:RadDocumentPane.HeaderTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"aaaa"
/>
<
Button
Margin
=
"2"
>Butt</
Button
>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadDocumentPane.HeaderTemplate
>
<
telerik:RadDocumentPane.Content
>
<
TextBlock
TextWrapping
=
"Wrap"
Text
=
"test text"
/>
</
telerik:RadDocumentPane.Content
>
</
telerik:RadDocumentPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
</
telerik:RadDocking.DocumentHost
>
</
telerik:RadDocking
>
</
Grid
>
</
Window
>
After we click on the button "Butt", RadPane is folowing mouse cursor until first click. Please help....
Thank you.