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)
52
if (
_contexts
== null)
57
foreach(PenContext context in
_contexts
)
66
if (
_contexts
!= null)
68
foreach(PenContext context in
_contexts
)
178
if (
_contexts
!= null)
180
for (int i = 0; i <
_contexts
.Length; i++)
182
PenContext context =
_contexts
[i];
194
if (
_contexts
!= null)
196
for (int i = 0; i <
_contexts
.Length; i++)
198
PenContext context =
_contexts
[i];
227
if (
_contexts
is not null && index <=
_contexts
.Length && _inputSource.CriticalHandle != 0)
229
PenContext[] ctxs = new PenContext[
_contexts
.Length + 1];
231
uint postCopyCount = (uint)
_contexts
.Length - index;
233
Array.Copy(
_contexts
, 0, ctxs, 0, preCopyCount);
236
Array.Copy(
_contexts
, index, ctxs, index+1, postCopyCount);
252
if (
_contexts
!= null && index <
_contexts
.Length)
254
PenContext removeCtx =
_contexts
[index];
256
PenContext[] ctxs = new PenContext[
_contexts
.Length - 1];
258
uint postCopyCount = (uint)
_contexts
.Length - index - 1;
260
Array.Copy(
_contexts
, 0, ctxs, 0, preCopyCount);
261
Array.Copy(
_contexts
, index+1, ctxs, index, postCopyCount);