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
- HtmlInputHidden.cs
- ScriptingJsonSerializationSection.cs
- FSWPathEditor.cs
- InnerItemCollectionView.cs
- PropertyReferenceSerializer.cs
- BitmapEffect.cs
- WizardStepBase.cs
- DataBinding.cs
- DetailsViewDeleteEventArgs.cs
- ArrangedElement.cs
- FixedSOMFixedBlock.cs
- SamlSecurityTokenAuthenticator.cs
- Region.cs
- StylusPlugin.cs
- FactoryGenerator.cs
- DbTransaction.cs
- RegexGroupCollection.cs
- CrossContextChannel.cs
- ContentPresenter.cs
- TypeSystem.cs
- LocalsItemDescription.cs
- MobileErrorInfo.cs
- AmbiguousMatchException.cs
- SoapUnknownHeader.cs
- ConstantSlot.cs
- OledbConnectionStringbuilder.cs
- HttpCapabilitiesSectionHandler.cs
- DllHostInitializer.cs
- HttpCookie.cs
- ListBindingConverter.cs
- XPathSelfQuery.cs
- RenderDataDrawingContext.cs
- AdornerLayer.cs
- JsonServiceDocumentSerializer.cs
- WebPartMenuStyle.cs
- HebrewCalendar.cs
- RectIndependentAnimationStorage.cs
- KeyProperty.cs
- WinInetCache.cs
- FolderLevelBuildProvider.cs
- DropShadowBitmapEffect.cs
- ServerValidateEventArgs.cs
- ProfessionalColorTable.cs
- SessionParameter.cs
- PropertyEmitterBase.cs
- WebPartCancelEventArgs.cs
- IntSecurity.cs
- SafeNativeMethods.cs
- WorkflowFileItem.cs
- Schema.cs
- GrammarBuilderRuleRef.cs
- OuterGlowBitmapEffect.cs
- RemoveStoryboard.cs
- UrlAuthorizationModule.cs
- TimelineClockCollection.cs
- TrackBarRenderer.cs
- DateTimeStorage.cs
- SystemGatewayIPAddressInformation.cs
- XmlIncludeAttribute.cs
- WebPartAuthorizationEventArgs.cs
- MTConfigUtil.cs
- HttpResponseInternalWrapper.cs
- MetafileHeaderEmf.cs
- ToolboxDataAttribute.cs
- MobileControlsSectionHelper.cs
- AssemblyResourceLoader.cs
- Memoizer.cs
- StylusPointPropertyId.cs
- QueryCacheManager.cs
- BufferBuilder.cs
- CounterSampleCalculator.cs
- CopyAction.cs
- PersonalizationProvider.cs
- Msec.cs
- SqlFlattener.cs
- CompositeControl.cs
- COM2IDispatchConverter.cs
- TargetFrameworkAttribute.cs
- Model3DGroup.cs
- ProgressPage.cs
- EntityViewGenerator.cs
- UserControl.cs
- XmlCountingReader.cs
- ProfileProvider.cs
- PeerNameRecord.cs
- CommonXSendMessage.cs
- NativeRecognizer.cs
- InfoCardProofToken.cs
- ProfilePropertySettingsCollection.cs
- _AcceptOverlappedAsyncResult.cs
- DataGridViewRowCollection.cs
- InkCanvasSelectionAdorner.cs
- FormViewAutoFormat.cs
- CommandBindingCollection.cs
- EmptyCollection.cs
- DurableInstanceManager.cs
- TdsParserStaticMethods.cs
- Action.cs
- DataQuery.cs
- XmlRootAttribute.cs