enhance: close #1167
This commit is contained in:
1 parent
f6a33b4e41
commit
ce7ba1dc60
1 file changed
+4
-1
@@ -419,7 +419,10 @@ public class TabControl : System.Windows.Controls.TabControl
|
||||
if (ItemContainerGenerator.ContainerFromItem(item) is not TabItem tabItem) continue;
|
||||
|
||||
tabItem.RaiseEvent(argsClosing);
|
||||
if (argsClosing.Cancel) return;
|
||||
if (argsClosing.Cancel)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
tabItem.RaiseEvent(new RoutedEventArgs(TabItem.ClosedEvent, item));
|
||||
list.Remove(item);
|
||||
|
||||
Reference in new issue
Block a user