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
- XamlHostingSectionGroup.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- ConditionCollection.cs
- XmlChoiceIdentifierAttribute.cs
- CheckBoxStandardAdapter.cs
- BrowserCapabilitiesFactory.cs
- XPathScanner.cs
- TreeViewBindingsEditor.cs
- ListComponentEditor.cs
- TableItemPattern.cs
- OrderByQueryOptionExpression.cs
- HierarchicalDataTemplate.cs
- OleDbErrorCollection.cs
- PreviousTrackingServiceAttribute.cs
- TextElementCollection.cs
- FastEncoder.cs
- TraceData.cs
- UshortList2.cs
- ReliabilityContractAttribute.cs
- TimeoutValidationAttribute.cs
- RTTrackingProfile.cs
- HttpCapabilitiesEvaluator.cs
- ProcessHostConfigUtils.cs
- LeaseManager.cs
- DefaultSerializationProviderAttribute.cs
- TransformerTypeCollection.cs
- DataSourceHelper.cs
- XmlArrayAttribute.cs
- ObjectContext.cs
- HttpDictionary.cs
- SynchronizedMessageSource.cs
- RequestContext.cs
- EntityDataSourceViewSchema.cs
- TextSchema.cs
- BindableTemplateBuilder.cs
- RSAPKCS1SignatureDeformatter.cs
- EntitySetBaseCollection.cs
- CharKeyFrameCollection.cs
- ApplicationServiceHelper.cs
- UnknownBitmapEncoder.cs
- WSFederationHttpSecurityMode.cs
- OleAutBinder.cs
- SingleAnimationBase.cs
- FontStyle.cs
- LogStream.cs
- ParameterBuilder.cs
- AddressHeader.cs
- TerminatorSinks.cs
- COM2IPerPropertyBrowsingHandler.cs
- DataPointer.cs
- EventSchemaTraceListener.cs
- HyperLinkStyle.cs
- AccessKeyManager.cs
- QilList.cs
- XPathNavigatorKeyComparer.cs
- MetadataItemEmitter.cs
- MatchAllMessageFilter.cs
- XsltArgumentList.cs
- StreamingContext.cs
- DataGridViewSortCompareEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- ReceiveActivityValidator.cs
- RectKeyFrameCollection.cs
- TraceData.cs
- ScrollData.cs
- InputLanguage.cs
- EntityDataSourceDesigner.cs
- AuthenticateEventArgs.cs
- XmlSchemaAnnotated.cs
- CaseInsensitiveOrdinalStringComparer.cs
- LOSFormatter.cs
- RawStylusActions.cs
- ArrayHelper.cs
- IdentityReference.cs
- SafePointer.cs
- BitmapCodecInfoInternal.cs
- ClientRoleProvider.cs
- PointConverter.cs
- DataGridViewCellValueEventArgs.cs
- AuthenticationService.cs
- HttpRuntimeSection.cs
- Transform.cs
- SqlVersion.cs
- CapabilitiesUse.cs
- OrthographicCamera.cs
- Path.cs
- DataGridViewColumnEventArgs.cs
- ISAPIRuntime.cs
- AsymmetricSignatureFormatter.cs
- SignatureToken.cs
- RuleSettingsCollection.cs
- DataException.cs
- MouseButton.cs
- Selector.cs
- ParenthesizePropertyNameAttribute.cs
- FactoryGenerator.cs
- AccessDataSource.cs
- WindowsRegion.cs
- HScrollProperties.cs