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)
30
if (
_contexts
== null)
35
foreach(PenContext context in
_contexts
)
44
if (
_contexts
!= null)
46
foreach(PenContext context in
_contexts
)
156
if (
_contexts
!= null)
158
for (int i = 0; i <
_contexts
.Length; i++)
160
PenContext context =
_contexts
[i];
172
if (
_contexts
!= null)
174
for (int i = 0; i <
_contexts
.Length; i++)
176
PenContext context =
_contexts
[i];
205
if (
_contexts
is not null && index <=
_contexts
.Length && _inputSource.Handle != 0)
207
PenContext[] ctxs = new PenContext[
_contexts
.Length + 1];
209
uint postCopyCount = (uint)
_contexts
.Length - index;
211
Array.Copy(
_contexts
, 0, ctxs, 0, preCopyCount);
214
Array.Copy(
_contexts
, index, ctxs, index+1, postCopyCount);
230
if (
_contexts
!= null && index <
_contexts
.Length)
232
PenContext removeCtx =
_contexts
[index];
234
PenContext[] ctxs = new PenContext[
_contexts
.Length - 1];
236
uint postCopyCount = (uint)
_contexts
.Length - index - 1;
238
Array.Copy(
_contexts
, 0, ctxs, 0, preCopyCount);
239
Array.Copy(
_contexts
, index+1, ctxs, index, postCopyCount);