2 writes to _defaultTextStore
PresentationCore (2)
System\Windows\Input\TextServicesContext.cs (2)
94
_defaultTextStore
= null;
192
_defaultTextStore
= defaultTextStore;
17 references to _defaultTextStore
PresentationCore (17)
System\Windows\Input\TextServicesContext.cs (17)
76
if (
_defaultTextStore
!= null)
79
if (
_defaultTextStore
.DocumentManager != null)
81
_defaultTextStore
.DocumentManager.Pop(UnsafeNativeMethods.PopFlags.TF_POPF_ALL);
82
Marshal.ReleaseComObject(
_defaultTextStore
.DocumentManager);
83
_defaultTextStore
.DocumentManager = null;
215
doc.CreateContext(_clientId, 0 /* flags */,
_defaultTextStore
, out context, out editCookie);
222
_defaultTextStore
.DocumentManager = doc;
223
_defaultTextStore
.EditCookie = editCookie;
345
compmgr =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfCompartmentMgr;
355
source =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfSource;
359
source.AdviseSink(ref guid,
_defaultTextStore
, out transitoryExtensionSinkCookie);
360
_defaultTextStore
.TransitoryExtensionSinkCookie = transitoryExtensionSinkCookie;
370
if (
_defaultTextStore
.TransitoryExtensionSinkCookie != UnsafeNativeMethods.TF_INVALID_COOKIE)
373
source =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfSource;
377
source.UnadviseSink(
_defaultTextStore
.TransitoryExtensionSinkCookie);
379
_defaultTextStore
.TransitoryExtensionSinkCookie = UnsafeNativeMethods.TF_INVALID_COOKIE;
384
compmgr =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfCompartmentMgr;