Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageProfileNotifySink.cs / 1305600 / InputLanguageProfileNotifySink.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: The source of the input language of the thread. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- using MS.Win32; using System.Collections; using System.Globalization; using System.Windows.Input; using System.Windows.Media; using System.Windows.Interop; using System.Runtime.InteropServices; using System; namespace System.Windows.Input { //----------------------------------------------------- // // InputLanguageProfileNotifySink // //----------------------------------------------------- ////// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// internal class InputLanguageProfileNotifySink : UnsafeNativeMethods.ITfLanguageProfileNotifySink { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputLanguageProfileNotifySink(InputLanguageSource target) { _target = target; } //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ ////// OnLanguageChange call back of the interface. /// public void OnLanguageChange(short langid, out bool accept) { accept = _target.OnLanguageChange(langid); } ////// OnLanguageChanged call back of the interface. /// public void OnLanguageChanged() { _target.OnLanguageChanged(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ // the owner of this sink. private InputLanguageSource _target; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // // Description: The source of the input language of the thread. // // History: // 07/30/2003 : yutakas - ported from dotnet tree. // //--------------------------------------------------------------------------- using MS.Win32; using System.Collections; using System.Globalization; using System.Windows.Input; using System.Windows.Media; using System.Windows.Interop; using System.Runtime.InteropServices; using System; namespace System.Windows.Input { //----------------------------------------------------- // // InputLanguageProfileNotifySink // //----------------------------------------------------- ////// This is an internal. This is an implementation of ITfLanguageProfileNotifySink. /// internal class InputLanguageProfileNotifySink : UnsafeNativeMethods.ITfLanguageProfileNotifySink { //------------------------------------------------------ // // Constructors // //----------------------------------------------------- internal InputLanguageProfileNotifySink(InputLanguageSource target) { _target = target; } //------------------------------------------------------ // // Public Methods // //------------------------------------------------------ ////// OnLanguageChange call back of the interface. /// public void OnLanguageChange(short langid, out bool accept) { accept = _target.OnLanguageChange(langid); } ////// OnLanguageChanged call back of the interface. /// public void OnLanguageChanged() { _target.OnLanguageChanged(); } //----------------------------------------------------- // // Private Fields // //------------------------------------------------------ // the owner of this sink. private InputLanguageSource _target; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RectAnimation.cs
- TypedReference.cs
- ApplicationInterop.cs
- ReliableSessionBindingElement.cs
- MobileControlsSectionHelper.cs
- ResourceCodeDomSerializer.cs
- SendMailErrorEventArgs.cs
- CompilerCollection.cs
- DataGridViewHitTestInfo.cs
- EnlistmentState.cs
- Walker.cs
- ADMembershipProvider.cs
- NTAccount.cs
- Double.cs
- IndependentlyAnimatedPropertyMetadata.cs
- Renderer.cs
- ReadWriteObjectLock.cs
- HtmlLiteralTextAdapter.cs
- CacheHelper.cs
- SlotInfo.cs
- QilUnary.cs
- FilterUserControlBase.cs
- StartUpEventArgs.cs
- ScriptReferenceEventArgs.cs
- MailBnfHelper.cs
- SQLDateTimeStorage.cs
- FilterException.cs
- ConversionContext.cs
- __ComObject.cs
- EnumBuilder.cs
- DataGridViewRowsAddedEventArgs.cs
- BStrWrapper.cs
- WebWorkflowRole.cs
- LayoutSettings.cs
- FormsAuthenticationEventArgs.cs
- BitmapEffectGroup.cs
- SqlExpander.cs
- ProxyWebPartManager.cs
- CapiSafeHandles.cs
- MethodAccessException.cs
- unsafeIndexingFilterStream.cs
- QuaternionAnimationUsingKeyFrames.cs
- Renderer.cs
- ImageList.cs
- Typography.cs
- DataSvcMapFile.cs
- TypeHelpers.cs
- KeyValueConfigurationElement.cs
- OdbcError.cs
- ResourceContainer.cs
- _SslSessionsCache.cs
- PermissionToken.cs
- ObjectStateEntry.cs
- DoubleKeyFrameCollection.cs
- TextBoxBase.cs
- WorkflowIdleElement.cs
- StylusButtonEventArgs.cs
- XamlSerializationHelper.cs
- FileLogRecordEnumerator.cs
- GenericRootAutomationPeer.cs
- ChangeInterceptorAttribute.cs
- WebPartCatalogAddVerb.cs
- isolationinterop.cs
- IntegerFacetDescriptionElement.cs
- SiteOfOriginContainer.cs
- ContractMethodParameterInfo.cs
- SerializableAttribute.cs
- WindowsSecurityTokenAuthenticator.cs
- Figure.cs
- XdrBuilder.cs
- ValueHandle.cs
- SyndicationPerson.cs
- NegotiationTokenAuthenticatorState.cs
- DeclarativeCatalogPart.cs
- IERequestCache.cs
- AssemblyBuilderData.cs
- DocComment.cs
- ISAPIRuntime.cs
- BindingCompleteEventArgs.cs
- RawStylusInputCustomData.cs
- TreeSet.cs
- ToolBarPanel.cs
- Line.cs
- NumericUpDownAccelerationCollection.cs
- XmlArrayItemAttribute.cs
- StrictModeSecurityHeaderElementInferenceEngine.cs
- GenericIdentity.cs
- TypeBuilderInstantiation.cs
- ToolStripSplitButton.cs
- RectAnimationBase.cs
- CorrelationManager.cs
- GradientStop.cs
- DispatcherObject.cs
- HierarchicalDataTemplate.cs
- UnionCodeGroup.cs
- FontEmbeddingManager.cs
- Point4DConverter.cs
- TextServicesCompartment.cs
- InstallerTypeAttribute.cs
- GZipDecoder.cs