I'm using DropDownButton in TabControl TabItem header with UserControl as DropDownContent.
When DropDown opens and i'm clicking on UserControl elements for example trying to resize OutlookBar or clicking other elements - DropDown always closes.
This problem does not show itself when using DropDownButton on clear Form as usual, but not when in TabItem header as Style.
Also i have Rotation problems. You can see that UserControl in upper ToggleButton is rotated like a crazy.
Here is Window xaml:
Here is UserControl:
When DropDown opens and i'm clicking on UserControl elements for example trying to resize OutlookBar or clicking other elements - DropDown always closes.
This problem does not show itself when using DropDownButton on clear Form as usual, but not when in TabItem header as Style.
Also i have Rotation problems. You can see that UserControl in upper ToggleButton is rotated like a crazy.
Here is Window xaml:
<
Window
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"MainWindow"
xmlns:me
=
"clr-namespace:WpfApplication1"
Title
=
"MainWindow"
Height
=
"350"
Width
=
"525"
>
<
Window.Resources
>
<
Style
x:Key
=
"ClosableStyle"
TargetType
=
"telerik:RadTabItem"
>
<
Setter
Property
=
"HeaderTemplate"
>
<
Setter.Value
>
<
DataTemplate
>
<
Grid
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"*"
/>
<
ColumnDefinition
Width
=
"Auto"
/>
</
Grid.ColumnDefinitions
>
<
TextBlock
Text
=
"{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Content, Mode=TwoWay}"
Grid.Column
=
"0"
></
TextBlock
>
<
telerik:RadDropDownButton
Width
=
"30"
Height
=
"30"
x:Name
=
"MachinesKnopka3"
Margin
=
"5,0,0,0"
DropDownButtonPosition
=
"Right"
DropDownIndicatorVisibility
=
"Visible"
DropDownPlacement
=
"Right"
DropDownHeight
=
"600"
DropDownWidth
=
"800"
Grid.Column
=
"1"
Padding
=
"0"
ClickMode
=
"Release"
IsOpen
=
"False"
>
<
telerik:RadDropDownButton.LayoutTransform
>
<
RotateTransform
Angle
=
"-90"
/>
</
telerik:RadDropDownButton.LayoutTransform
>
<
telerik:RadDropDownButton.DropDownContent
>
<
me:UserControl1
></
me:UserControl1
>
</
telerik:RadDropDownButton.DropDownContent
>
</
telerik:RadDropDownButton
>
</
Grid
>
</
DataTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Window.Resources
>
<
Grid
>
<
telerik:RadTabControl
ItemContainerStyle
=
"{StaticResource ClosableStyle}"
TabOrientation
=
"Horizontal"
TabStripPlacement
=
"Left"
FlowDirection
=
"LeftToRight"
Align
=
"Right"
Grid.Row
=
"1"
DropDownDisplayMode
=
"Visible"
telerik:StyleManager.Theme
=
"Vista"
AllowDragReorder
=
"True"
>
<
telerik:RadTabControl.Background
>
<
LinearGradientBrush
EndPoint
=
"0.504,1.5"
StartPoint
=
"0.504,0.03"
>
<
GradientStop
Color
=
"#FFB7B7B7"
Offset
=
"0"
/>
<
GradientStop
Color
=
"#FFFFFFFF"
Offset
=
"0.567"
/>
</
LinearGradientBrush
>
</
telerik:RadTabControl.Background
>
<
telerik:RadTabItem
Header
=
"Tab1"
/>
<
telerik:RadTabItem
Header
=
"Tab2"
/>
</
telerik:RadTabControl
>
</
Grid
>
</
Window
>
Here is UserControl:
<
UserControl
x:Class
=
"UserControl1"
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"300"
>
<
Grid
>
<
Grid
VerticalAlignment
=
"Stretch"
Grid.Row
=
"1"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"Auto"
/>
<
ColumnDefinition
Width
=
"*"
/>
</
Grid.ColumnDefinitions
>
<
telerik:RadOutlookBar
HorizontalAlignment
=
"Stretch"
VerticalAlignment
=
"Stretch"
Grid.Column
=
"0"
>
<
telerik:RadOutlookBarItem
Header
=
"Online Games"
>
<
TextBlock
>BattleField IV</
TextBlock
>
</
telerik:RadOutlookBarItem
>
<
telerik:RadOutlookBarItem
Header
=
"Social Network"
>
<
TextBlock
>FaceBook</
TextBlock
>
</
telerik:RadOutlookBarItem
>
</
telerik:RadOutlookBar
>
<
TextBox
Grid.Column
=
"1"
>Text1</
TextBox
>
</
Grid
>
</
Grid
>
</
UserControl
>