ButchersBoy / Dragablz

Dragable and tearable tab control for WPF
http://dragablz.net
MIT License
2.2k stars 322 forks source link

Close button is not getting displayed #58

Closed jithurjacob closed 8 years ago

jithurjacob commented 8 years ago

Hi I'm developing an application in WPF C# where I use Material Design and dragablz. I don't need features like docking I've disabled InterTabController as I'm using dragablz inside a user component.

public INewTabHost GetNewHost(IInterTabClient interTabClient, object partition, TabablzControl source) { var view = new UserControl2(); var model = new BoundExampleModel(); view.DataContext = model; return new NewTabHost(view, view.InitialTabablzControl); } Here view can only be a window. The Issue I'm facing is I'm not getting close button with tabs (add button is working)

ButchersBoy commented 8 years ago

Have you got .ShowDefaultCloseButton button set?

jithurjacob commented 8 years ago

Yes

jithurjacob commented 8 years ago

<Window x:Class="Wpf_test.tab_test" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Wpf_test" xmlns:domain="clr-namespace:Wpf_test.Domain" xmlns:dragablz="clr-namespace:Dragablz;assembly=Dragablz" mc:Ignorable="d" Title="tab_test" Height="300" Width="300">

```
ButchersBoy commented 8 years ago

Hi .ShowDefaultCloseButton will also need to be set on your UserControl2/second Window....you sure this is being applied? As this should be working.

ButchersBoy commented 8 years ago

Is this an issue still? If so, post a repo please. Otherwise I'll close.

jithurjacob commented 8 years ago

I was to able to solve this. Thank you

yvasilev1 commented 8 years ago

How did you fix it im encountering the same issue?

MeghnathDas commented 7 years ago

I want first tab of the tabcontrol should not have the close button. How could I implement it? You can have a look on below code: `

Hello World We Have Tearable Tabs! `
ButchersBoy commented 7 years ago

@babin1988 FixedHeaderCount

ZeyadAttia commented 1 year ago

I was to able to solve this. Thank you

How?