2 writes to _defaultTextStore
PresentationCore (2)
Core\CSharp\System\Windows\Input\TextServicesContext.cs (2)
115
_defaultTextStore
= null;
227
_defaultTextStore
= defaultTextStore;
17 references to _defaultTextStore
PresentationCore (17)
Core\CSharp\System\Windows\Input\TextServicesContext.cs (17)
97
if (
_defaultTextStore
!= null)
100
if (
_defaultTextStore
.DocumentManager != null)
102
_defaultTextStore
.DocumentManager.Pop(UnsafeNativeMethods.PopFlags.TF_POPF_ALL);
103
Marshal.ReleaseComObject(
_defaultTextStore
.DocumentManager);
104
_defaultTextStore
.DocumentManager = null;
250
doc.CreateContext(_clientId.Value, 0 /* flags */,
_defaultTextStore
, out context, out editCookie);
257
_defaultTextStore
.DocumentManager = doc;
258
_defaultTextStore
.EditCookie = editCookie;
415
compmgr =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfCompartmentMgr;
425
source =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfSource;
429
source.AdviseSink(ref guid,
_defaultTextStore
, out transitoryExtensionSinkCookie);
430
_defaultTextStore
.TransitoryExtensionSinkCookie = transitoryExtensionSinkCookie;
447
if (
_defaultTextStore
.TransitoryExtensionSinkCookie != UnsafeNativeMethods.TF_INVALID_COOKIE)
450
source =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfSource;
454
source.UnadviseSink(
_defaultTextStore
.TransitoryExtensionSinkCookie);
456
_defaultTextStore
.TransitoryExtensionSinkCookie = UnsafeNativeMethods.TF_INVALID_COOKIE;
461
compmgr =
_defaultTextStore
.DocumentManager as UnsafeNativeMethods.ITfCompartmentMgr;