4 writes to _contexts
PresentationCore (4)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (4)
55_contexts = _stylusLogic.WispTabletDevices.CreateContexts(_inputSource.CriticalHandle, this); 73_contexts = null; // release refs on PenContext objects 237_contexts = ctxs; 265_contexts = ctxs;
23 references to _contexts
PresentationCore (23)
System\Windows\Input\Stylus\Wisp\PenContexts.cs (23)
52if (_contexts == null) 57foreach(PenContext context in _contexts) 66if (_contexts != null) 68foreach(PenContext context in _contexts) 178if (_contexts != null) 180for (int i = 0; i < _contexts.Length; i++) 182PenContext context = _contexts[i]; 194if (_contexts != null) 196for (int i = 0; i < _contexts.Length; i++) 198PenContext context = _contexts[i]; 227if (_contexts is not null && index <= _contexts.Length && _inputSource.CriticalHandle != 0) 229PenContext[] ctxs = new PenContext[_contexts.Length + 1]; 231uint postCopyCount = (uint)_contexts.Length - index; 233Array.Copy(_contexts, 0, ctxs, 0, preCopyCount); 236Array.Copy(_contexts, index, ctxs, index+1, postCopyCount); 252if (_contexts != null && index < _contexts.Length) 254PenContext removeCtx = _contexts[index]; 256PenContext[] ctxs = new PenContext[_contexts.Length - 1]; 258uint postCopyCount = (uint)_contexts.Length - index - 1; 260Array.Copy(_contexts, 0, ctxs, 0, preCopyCount); 261Array.Copy(_contexts, index+1, ctxs, index, postCopyCount);