2 writes to _defaultTextStore
PresentationCore (2)
System\Windows\Input\TextServicesContext.cs (2)
93
_defaultTextStore
= null;
191
_defaultTextStore
= defaultTextStore;
17 references to _defaultTextStore
PresentationCore (17)
System\Windows\Input\TextServicesContext.cs (17)
75
if (
_defaultTextStore
!= null)
78
if (
_defaultTextStore
.DocumentManager != null)
80
_defaultTextStore
.DocumentManager.Pop(UnsafeNativeMethods.PopFlags.TF_POPF_ALL);
81
Marshal.ReleaseComObject(
_defaultTextStore
.DocumentManager);
82
_defaultTextStore
.DocumentManager = null;
214
doc.CreateContext(_clientId, flags: 0,
_defaultTextStore
, out context, out editCookie);
221
_defaultTextStore
.DocumentManager = doc;
222
_defaultTextStore
.EditCookie = editCookie;
341
compmgr =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfCompartmentMgr;
351
source =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfSource;
355
source.AdviseSink(ref guid,
_defaultTextStore
, out transitoryExtensionSinkCookie);
356
_defaultTextStore
.TransitoryExtensionSinkCookie = transitoryExtensionSinkCookie;
366
if (
_defaultTextStore
.TransitoryExtensionSinkCookie != UnsafeNativeMethods.TF_INVALID_COOKIE)
369
source =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfSource;
371
source?.UnadviseSink(
_defaultTextStore
.TransitoryExtensionSinkCookie);
372
_defaultTextStore
.TransitoryExtensionSinkCookie = UnsafeNativeMethods.TF_INVALID_COOKIE;
377
compmgr =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfCompartmentMgr;