Skip to content

Should a click on a MetroTabItems close button really clear the buttons Command and CommandParameter properties? #2462

@davikor

Description

@davikor

What steps will reproduce this issue?

Use MetroTabControl and add MetroTabItems with CloseButtonEnabledset to true and CloseTabCommand (of the MetroTabItem) bound to a command that triggers a dialog ("are you sure you want to close...blablabla?"). When denied, the command does not remove the tab, but closeButton_Click in MetroTabItem.cs sets the CloseTabCommand and CloseTabCommandParameter properties to null, preventing subsequent command invocations.

Expected outcome

In my opinion these two properties should remain set to their respective Command and Parameter or am I using this control not in the intended way?

Environment

  • MahApps.Metro 1.2.4 as well as on develop and master branches
  • Windows 7
  • Visual Studio 2015
  • .NET Framework 4.6

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions