Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Input / InputLanguageProfileNotifySink.cs / 1 / 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
- StateManagedCollection.cs
- FormClosingEvent.cs
- BitmapEffectDrawing.cs
- RectValueSerializer.cs
- SafeTimerHandle.cs
- DesignerLoader.cs
- RuntimeHandles.cs
- CodeTypeDelegate.cs
- StorageEntityTypeMapping.cs
- InputScopeNameConverter.cs
- CompilerCollection.cs
- MessagePropertyDescriptionCollection.cs
- SearchForVirtualItemEventArgs.cs
- XsltInput.cs
- EntityDesignerUtils.cs
- TableLayout.cs
- VersionPair.cs
- SizeChangedEventArgs.cs
- FloatAverageAggregationOperator.cs
- ObjectManager.cs
- UrlMappingCollection.cs
- TextRangeProviderWrapper.cs
- AspNetSynchronizationContext.cs
- EncoderNLS.cs
- UpdateException.cs
- MethodBuilder.cs
- followingsibling.cs
- IndependentlyAnimatedPropertyMetadata.cs
- DataViewManager.cs
- Msmq3PoisonHandler.cs
- DoubleConverter.cs
- EntityDataSourceValidationException.cs
- IISUnsafeMethods.cs
- NextPreviousPagerField.cs
- XmlSchemaComplexContentRestriction.cs
- ThumbButtonInfoCollection.cs
- HttpCapabilitiesSectionHandler.cs
- ClientConfigurationHost.cs
- TypeNameConverter.cs
- ResizeGrip.cs
- dataprotectionpermission.cs
- CodeActivityContext.cs
- TextBox.cs
- IdentitySection.cs
- AttachedAnnotation.cs
- ArgumentOutOfRangeException.cs
- Tile.cs
- PenThreadWorker.cs
- SqlCacheDependencyDatabase.cs
- ChannelSinkStacks.cs
- ProcessInfo.cs
- XmlJsonReader.cs
- VerificationAttribute.cs
- CustomBinding.cs
- ScalarType.cs
- PartBasedPackageProperties.cs
- Point3DCollectionConverter.cs
- Rotation3DAnimation.cs
- ServiceAppDomainAssociationProvider.cs
- ConfigXmlReader.cs
- Brush.cs
- XmlSecureResolver.cs
- DataObjectEventArgs.cs
- DataGridItem.cs
- ConnectionStringSettings.cs
- KeyEvent.cs
- WebPartDescription.cs
- TableLayoutPanel.cs
- FacetValues.cs
- ApplicationException.cs
- BrowserDefinition.cs
- Int16Storage.cs
- WindowsSolidBrush.cs
- DependencyPropertyKind.cs
- SelectionChangedEventArgs.cs
- DecimalKeyFrameCollection.cs
- ClonableStack.cs
- ErasingStroke.cs
- TransactionFlowOption.cs
- SectionInput.cs
- DataGridViewRowsRemovedEventArgs.cs
- ProviderConnectionPoint.cs
- KoreanLunisolarCalendar.cs
- ListViewUpdateEventArgs.cs
- PreApplicationStartMethodAttribute.cs
- ListBox.cs
- EffectiveValueEntry.cs
- StaticDataManager.cs
- RSAPKCS1SignatureFormatter.cs
- TrackingProfile.cs
- GridViewCancelEditEventArgs.cs
- AppearanceEditorPart.cs
- CodePageEncoding.cs
- SyndicationContent.cs
- ValidationPropertyAttribute.cs
- RequestCacheEntry.cs
- InstanceLockLostException.cs
- FileUpload.cs
- DataSourceControl.cs
- FileDialogPermission.cs