Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- ParameterBuilder.cs
- FileChangesMonitor.cs
- SchemaSetCompiler.cs
- EmbossBitmapEffect.cs
- HttpCapabilitiesSectionHandler.cs
- PolyBezierSegment.cs
- LinqDataSourceValidationException.cs
- WindowsListViewItemStartMenu.cs
- KerberosSecurityTokenProvider.cs
- SettingsPropertyWrongTypeException.cs
- Geometry3D.cs
- SmtpCommands.cs
- InternalBase.cs
- RenderingEventArgs.cs
- SHA384.cs
- AttachedPropertyDescriptor.cs
- ChannelServices.cs
- DocumentCollection.cs
- DesignerLinkAdapter.cs
- InteropTrackingRecord.cs
- MonthChangedEventArgs.cs
- EventLogException.cs
- Scripts.cs
- EdgeProfileValidation.cs
- TypeToken.cs
- EnumValAlphaComparer.cs
- SelectorAutomationPeer.cs
- SQLMembershipProvider.cs
- SubclassTypeValidatorAttribute.cs
- MetadataPropertyvalue.cs
- DbExpressionVisitor.cs
- ScrollBar.cs
- WebPartCollection.cs
- NavigationWindowAutomationPeer.cs
- ProviderUtil.cs
- ObjectStateFormatter.cs
- UTF32Encoding.cs
- FrameworkContentElement.cs
- ServerIdentity.cs
- OutOfProcStateClientManager.cs
- NotifyCollectionChangedEventArgs.cs
- OleDbMetaDataFactory.cs
- IISUnsafeMethods.cs
- RbTree.cs
- linebase.cs
- SecurityTokenSpecification.cs
- XmlUtil.cs
- UpdatePanel.cs
- StaticExtension.cs
- QilLiteral.cs
- AssemblyNameProxy.cs
- WebPartsPersonalizationAuthorization.cs
- ComNativeDescriptor.cs
- RecognizedAudio.cs
- PermissionToken.cs
- WMIInterop.cs
- Material.cs
- PersistenceProviderFactory.cs
- PtsPage.cs
- PointCollectionValueSerializer.cs
- StrokeRenderer.cs
- GcHandle.cs
- ToolStripDesignerAvailabilityAttribute.cs
- ImageSourceValueSerializer.cs
- Activity.cs
- ControlIdConverter.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs
- QilReference.cs
- GB18030Encoding.cs
- handlecollector.cs
- CqlWriter.cs
- AssemblyName.cs
- IsolatedStorageFile.cs
- MappingItemCollection.cs
- DataDocumentXPathNavigator.cs
- SiteMapProvider.cs
- ZipIOExtraField.cs
- PassportIdentity.cs
- DesignTimeParseData.cs
- LineSegment.cs
- OleDbFactory.cs
- MailWebEventProvider.cs
- ECDiffieHellmanCngPublicKey.cs
- ExpandCollapseProviderWrapper.cs
- SerializationSectionGroup.cs
- StringUtil.cs
- TextureBrush.cs
- QualificationDataAttribute.cs
- Attachment.cs
- SystemResourceHost.cs
- VisualBasicExpressionConverter.cs
- HealthMonitoringSectionHelper.cs
- AddInProcess.cs
- UpdateExpressionVisitor.cs
- RowParagraph.cs
- OdbcConnectionHandle.cs
- ControlIdConverter.cs
- SubclassTypeValidatorAttribute.cs
- DataListItemCollection.cs
- TextRangeEditTables.cs