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
- ObjRef.cs
- AccessorTable.cs
- ScrollEventArgs.cs
- InkCanvasFeedbackAdorner.cs
- SafeViewOfFileHandle.cs
- DocumentPaginator.cs
- XamlFilter.cs
- DataServiceQueryProvider.cs
- URLBuilder.cs
- XsltFunctions.cs
- VectorAnimationUsingKeyFrames.cs
- DatasetMethodGenerator.cs
- ConnectionsZoneDesigner.cs
- ContentType.cs
- Transform3DGroup.cs
- ZipIOLocalFileDataDescriptor.cs
- ControlValuePropertyAttribute.cs
- XDeferredAxisSource.cs
- ResolvedKeyFrameEntry.cs
- ViewEvent.cs
- DataBoundControlDesigner.cs
- OutputCacheSection.cs
- RelationshipDetailsCollection.cs
- SizeAnimation.cs
- UniqueIdentifierService.cs
- ImageListUtils.cs
- EnterpriseServicesHelper.cs
- SocketPermission.cs
- TokenizerHelper.cs
- ProfileManager.cs
- ZipIOLocalFileHeader.cs
- UrlMappingsModule.cs
- FramingFormat.cs
- ItemsPanelTemplate.cs
- AncillaryOps.cs
- SQLBinary.cs
- XmlDictionaryReader.cs
- MetafileHeaderWmf.cs
- TraceUtils.cs
- Rect3DValueSerializer.cs
- BrowserCapabilitiesFactory.cs
- SqlConnectionStringBuilder.cs
- dtdvalidator.cs
- StaticFileHandler.cs
- AssertFilter.cs
- TPLETWProvider.cs
- MULTI_QI.cs
- SecurityUtils.cs
- IISUnsafeMethods.cs
- LinqDataSourceContextEventArgs.cs
- Button.cs
- AsynchronousChannelMergeEnumerator.cs
- Stacktrace.cs
- SelectionHighlightInfo.cs
- AttachedAnnotationChangedEventArgs.cs
- DataSourceXmlElementAttribute.cs
- XmlBuffer.cs
- TraceListeners.cs
- UnsafeNativeMethodsCLR.cs
- HttpCapabilitiesEvaluator.cs
- DataGridSortCommandEventArgs.cs
- IItemContainerGenerator.cs
- HwndSourceKeyboardInputSite.cs
- CustomPopupPlacement.cs
- ZipIOExtraFieldElement.cs
- Crc32Helper.cs
- SystemEvents.cs
- WindowVisualStateTracker.cs
- ObjectKeyFrameCollection.cs
- DefaultParameterValueAttribute.cs
- UnmanagedBitmapWrapper.cs
- TabPanel.cs
- ContainsSearchOperator.cs
- Int16AnimationBase.cs
- WebPartChrome.cs
- CodePageUtils.cs
- SendKeys.cs
- TabRenderer.cs
- TreeViewDesigner.cs
- ModelItemCollectionImpl.cs
- bindurihelper.cs
- SchemaCollectionPreprocessor.cs
- RootNamespaceAttribute.cs
- SqlException.cs
- RoleGroupCollection.cs
- EventListener.cs
- XmlSubtreeReader.cs
- ButtonField.cs
- FlowLayoutPanel.cs
- FileRecordSequenceHelper.cs
- PenLineCapValidation.cs
- DataGridTableCollection.cs
- AdRotator.cs
- OracleRowUpdatedEventArgs.cs
- ScrollItemProviderWrapper.cs
- ComponentResourceManager.cs
- DesignerExtenders.cs
- ActiveXContainer.cs
- SystemParameters.cs
- TableMethodGenerator.cs