4 writes to _contexts
PresentationCore (4)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
33_contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.Handle, this); 51_contexts = null; // release refs on PenContext objects 215_contexts = ctxs; 243_contexts = ctxs;
23 references to _contexts
PresentationCore (23)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (23)
30if (_contexts == null) 35foreach(PenContext context in _contexts) 44if (_contexts != null) 46foreach(PenContext context in _contexts) 156if (_contexts != null) 158for (int i = 0; i < _contexts.Length; i++) 160PenContext context = _contexts[i]; 172if (_contexts != null) 174for (int i = 0; i < _contexts.Length; i++) 176PenContext context = _contexts[i]; 205if (_contexts is not null && index <= _contexts.Length && _inputSource.Handle != 0) 207PenContext[] ctxs = new PenContext[_contexts.Length + 1]; 209uint postCopyCount = (uint)_contexts.Length - index; 211Array.Copy(_contexts, 0, ctxs, 0, preCopyCount); 214Array.Copy(_contexts, index, ctxs, index+1, postCopyCount); 230if (_contexts != null && index < _contexts.Length) 232PenContext removeCtx = _contexts[index]; 234PenContext[] ctxs = new PenContext[_contexts.Length - 1]; 236uint postCopyCount = (uint)_contexts.Length - index - 1; 238Array.Copy(_contexts, 0, ctxs, 0, preCopyCount); 239Array.Copy(_contexts, index+1, ctxs, index, postCopyCount);