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

TabControl in the Window Header

1 Answer 138 Views
Window
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 17 Oct 2016, 10:02 PM

I would like to create a Google Chrome like application with tabs positioned in the application header.

Does the RadWindow provide any Features to achieve this?

It's pretty easy to position it right, but the tabs become unclickable this way:

<Grid Margin="0,-23,0,0" >
    <telerik:RadTabControl HeaderBackground="{x:Null}" x:Name="radTabControl" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.ColumnSpan="2">
        <telerik:RadTabItem x:Name="RadTabItem" Header="RadTabItem" Height="24" Width="100">
            <Grid Background="Transparent"/>
        </telerik:RadTabItem>
    </telerik:RadTabControl>
</Grid>

1 Answer, 1 is accepted

Sort by
0
Kalin
Telerik team
answered on 19 Oct 2016, 02:06 PM
Hello Michael,

Try setting the telerikNavigation:WindowHost.HitTestable attached property to True to TabControl:

telerikNavigation:WindowHost.HitTestable="True"

And the namespace is:
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"

This way you would be able to click on the TabControl, however you won't be able to move the Window by dragging the TabControl.

Hope this helps.

Regards,
Kalin
Telerik by Progress
Do you need help with upgrading your WPF project? Try the Telerik API Analyzer and share your thoughts!
Tags
Window
Asked by
Michael
Top achievements
Rank 1
Answers by
Kalin
Telerik team
Share this question
or