Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- SpellerHighlightLayer.cs
- SiteMapDataSource.cs
- JournalEntryListConverter.cs
- ReliableMessagingVersionConverter.cs
- ThreadPool.cs
- PeerNameRegistration.cs
- CanExecuteRoutedEventArgs.cs
- DataColumnChangeEvent.cs
- CollectionViewGroupInternal.cs
- PartialList.cs
- PerfCounterSection.cs
- IDReferencePropertyAttribute.cs
- FileBasedResourceGroveler.cs
- X509CertificateCollection.cs
- KeyNameIdentifierClause.cs
- UrlParameterWriter.cs
- StaticFileHandler.cs
- SizeConverter.cs
- BitmapEffectDrawingContextWalker.cs
- versioninfo.cs
- Binding.cs
- BulletChrome.cs
- TokenBasedSetEnumerator.cs
- SingletonChannelAcceptor.cs
- RowTypeElement.cs
- ListViewSortEventArgs.cs
- DrawingCollection.cs
- ExternalException.cs
- SchemaImporterExtension.cs
- GuidTagList.cs
- ViewBase.cs
- NamespaceCollection.cs
- Automation.cs
- xmlsaver.cs
- ServicePerformanceCounters.cs
- TextModifierScope.cs
- SerializerProvider.cs
- QilTernary.cs
- InteropTrackingRecord.cs
- DataSourceControl.cs
- EntityDataSourceUtil.cs
- Document.cs
- XmlAttributeProperties.cs
- SoapFault.cs
- CacheForPrimitiveTypes.cs
- StreamingContext.cs
- KeyedHashAlgorithm.cs
- storepermissionattribute.cs
- LockCookie.cs
- RegexMatch.cs
- Logging.cs
- NativeWindow.cs
- SafeNativeMethodsMilCoreApi.cs
- NumberFormatter.cs
- ExternalException.cs
- XmlDownloadManager.cs
- EventLogPermissionAttribute.cs
- ContentFilePart.cs
- DataControlField.cs
- ParserContext.cs
- CacheModeConverter.cs
- BindToObject.cs
- PointKeyFrameCollection.cs
- VirtualizedItemPattern.cs
- EditBehavior.cs
- EntityContainerEntitySetDefiningQuery.cs
- StringInfo.cs
- MetadataItemCollectionFactory.cs
- DocumentCollection.cs
- TerminatorSinks.cs
- ZoneIdentityPermission.cs
- BridgeDataRecord.cs
- objectquery_tresulttype.cs
- ProxyManager.cs
- File.cs
- CellCreator.cs
- DataGridViewCellContextMenuStripNeededEventArgs.cs
- X509CertificateStore.cs
- StorageComplexPropertyMapping.cs
- MetadataItemSerializer.cs
- TraceHandler.cs
- HMACSHA512.cs
- EmbeddedMailObjectsCollection.cs
- LifetimeManager.cs
- IncrementalCompileAnalyzer.cs
- QuadTree.cs
- StatusBar.cs
- _AutoWebProxyScriptEngine.cs
- ServiceDescription.cs
- DiscoveryViaBehavior.cs
- WebResourceAttribute.cs
- Condition.cs
- CurrentTimeZone.cs
- AppDomainShutdownMonitor.cs
- XmlEventCache.cs
- PopupRoot.cs
- ProcessHost.cs
- BitmapVisualManager.cs
- NonClientArea.cs
- MultiViewDesigner.cs