New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS TabItem #2090

Closed
ghost opened this Issue Aug 25, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Aug 25, 2015

Hi,

Sorry but how do i get this VS TabItem to close i have tried the following:

<TabControl Name="tabControlMain" Margin="0,10,0,0" xmlns:Controls="http://metro.mahapps.com/winfx/xaml/controls">
                <Controls:MetroTabItem Header=""
                         CloseButtonEnabled="True"
                         CloseTabCommand="{Binding CloseTabCommand}"
                         CloseTabCommandParameter="{Binding RelativeSource={RelativeSource Self}, Path=Header}" />
            </TabControl>
private void CloseTabCommand(object sender, CanExecuteRoutedEventArgs e)
        {
            if (tabControlMain.Items.Count > 0)
                tabControlMain.Items.Remove(tabControlMain.Items[tabControlMain.SelectedIndex]);
        }

But its not showing vs style and if i don't use Controls i cant use CloseTabCommand

@punker76

This comment has been minimized.

Show comment
Hide comment
@punker76

punker76 Aug 26, 2015

Member

@di48l069 the closing stuff is not really implemented in the VS style (but should be in the next time)

Member

punker76 commented Aug 26, 2015

@di48l069 the closing stuff is not really implemented in the VS style (but should be in the next time)

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Aug 27, 2015

@punker76 Thanks would this be available in next release.

ghost commented Aug 27, 2015

@punker76 Thanks would this be available in next release.

@ghost ghost closed this Mar 9, 2016

@punker76 punker76 reopened this Mar 9, 2016

@punker76 punker76 added this to the 1.4.0 milestone Mar 9, 2016

@punker76 punker76 modified the milestones: 2.0.0, 1.4.0 Mar 24, 2016

@punker76 punker76 modified the milestones: 1.4.0, 2.0.0 Dec 20, 2016

@punker76 punker76 closed this in #2768 Dec 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment