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
- XPathNodeList.cs
- SafeRightsManagementPubHandle.cs
- LineProperties.cs
- CellQuery.cs
- TextSelectionHighlightLayer.cs
- GridViewUpdatedEventArgs.cs
- OrderedDictionary.cs
- Int16AnimationUsingKeyFrames.cs
- DelayedRegex.cs
- HttpResponse.cs
- InvalidPipelineStoreException.cs
- InheritedPropertyChangedEventArgs.cs
- XmlSchemaSimpleType.cs
- StylusButton.cs
- ResourceWriter.cs
- DataGridViewDataErrorEventArgs.cs
- UnmanagedHandle.cs
- FileAuthorizationModule.cs
- ItemsPresenter.cs
- GraphicsPathIterator.cs
- NotImplementedException.cs
- LabelEditEvent.cs
- MdiWindowListStrip.cs
- TableRowGroup.cs
- UnmanagedMemoryStream.cs
- ScrollPatternIdentifiers.cs
- PersonalizationDictionary.cs
- TextAnchor.cs
- BrushValueSerializer.cs
- HelpFileFileNameEditor.cs
- WindowVisualStateTracker.cs
- itemelement.cs
- ClassDataContract.cs
- XmlSchemaSimpleContentRestriction.cs
- UnSafeCharBuffer.cs
- RepeatInfo.cs
- ExpressionParser.cs
- GeometryHitTestResult.cs
- MulticastIPAddressInformationCollection.cs
- SecurityState.cs
- System.Data_BID.cs
- DataTable.cs
- String.cs
- XmlSchemaAttributeGroupRef.cs
- MatrixTransform.cs
- StorageBasedPackageProperties.cs
- GPRECT.cs
- AttributeTableBuilder.cs
- DateTime.cs
- ProviderConnectionPoint.cs
- MessageDecoder.cs
- QilLoop.cs
- TextFormatterHost.cs
- DbBuffer.cs
- DispatcherHookEventArgs.cs
- AnnotationStore.cs
- SkinBuilder.cs
- TextLine.cs
- EntityDataSourceState.cs
- HttpCapabilitiesBase.cs
- BehaviorEditorPart.cs
- DebuggerService.cs
- Odbc32.cs
- TransactionValidationBehavior.cs
- CharacterString.cs
- TemplatedWizardStep.cs
- HttpModuleAction.cs
- SR.cs
- MouseEventArgs.cs
- FontFamilyValueSerializer.cs
- WpfPayload.cs
- PropertyMappingExceptionEventArgs.cs
- Transactions.cs
- Timer.cs
- FileDialog_Vista_Interop.cs
- D3DImage.cs
- BroadcastEventHelper.cs
- FontInfo.cs
- SchemaMapping.cs
- CompiledRegexRunnerFactory.cs
- RotationValidation.cs
- SystemIPInterfaceStatistics.cs
- ObjectViewQueryResultData.cs
- ErrorTableItemStyle.cs
- PolicyManager.cs
- Sql8ExpressionRewriter.cs
- MergeFailedEvent.cs
- FunctionDescription.cs
- UnaryOperationBinder.cs
- MemberRelationshipService.cs
- BitmapEditor.cs
- ErrorProvider.cs
- _Connection.cs
- FlowDocumentView.cs
- WindowsBrush.cs
- ActivityDesigner.cs
- BooleanExpr.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- SiteIdentityPermission.cs
- XmlDocumentSerializer.cs