1 write to _behaviorStack
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (1)
72_behaviorStack = [];
13 references to _behaviorStack
System.Windows.Forms.Design (13)
System\Windows\Forms\Design\Behavior\BehaviorService.cs (13)
144public Behavior? CurrentBehavior => _behaviorStack.Count > 0 ? _behaviorStack[0] : null; 339if (_behaviorStack.Count > 0) 341int index = _behaviorStack.IndexOf(behavior); 342if ((index != -1) && (index < _behaviorStack.Count - 1)) 344return _behaviorStack[index + 1]; 389if (_behaviorStack.Count == 0) 394int index = _behaviorStack.IndexOf(behavior); 401_behaviorStack.RemoveAt(index); 432_behaviorStack.Insert(0, behavior); 522if (_behaviorStack is [Behavior behavior, ..]) 573return _behaviorStack.Count > 0 ? _behaviorStack[0] : g?.Behavior;