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
- DoubleAnimationUsingKeyFrames.cs
- NGCSerializerAsync.cs
- Viewport3DVisual.cs
- TextBox.cs
- LostFocusEventManager.cs
- ParentQuery.cs
- GridViewCancelEditEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- HtmlElementCollection.cs
- ByteArrayHelperWithString.cs
- SchemaNotation.cs
- DesignOnlyAttribute.cs
- LocalizeDesigner.cs
- KeyGestureValueSerializer.cs
- InvalidCastException.cs
- ELinqQueryState.cs
- BulletedListEventArgs.cs
- ProcessHostServerConfig.cs
- MailAddressCollection.cs
- ListenerElementsCollection.cs
- CoreSwitches.cs
- CaretElement.cs
- DataTablePropertyDescriptor.cs
- HtmlInputFile.cs
- InputScope.cs
- IdentityValidationException.cs
- PersistenceException.cs
- TypedDataSetSchemaImporterExtension.cs
- CroppedBitmap.cs
- DataStorage.cs
- InvalidDocumentContentsException.cs
- VerbConverter.cs
- TemplateKey.cs
- IdentityHolder.cs
- HtmlHead.cs
- DirectoryObjectSecurity.cs
- ClientProxyGenerator.cs
- Message.cs
- FixedDocumentSequencePaginator.cs
- XmlCharCheckingReader.cs
- SignerInfo.cs
- Header.cs
- LinqDataSourceView.cs
- ParameterModifier.cs
- BufferCache.cs
- BinaryEditor.cs
- TraceListener.cs
- DrawingAttributeSerializer.cs
- WebBrowser.cs
- MarginCollapsingState.cs
- Point3DConverter.cs
- OleDbConnection.cs
- WindowVisualStateTracker.cs
- GPStream.cs
- VisualTransition.cs
- TableAdapterManagerMethodGenerator.cs
- ConnectorSelectionGlyph.cs
- ToolTipService.cs
- TypeForwardedToAttribute.cs
- HttpClientCertificate.cs
- KeyGesture.cs
- OdbcDataAdapter.cs
- WebBrowserDesigner.cs
- TypeBuilderInstantiation.cs
- Nodes.cs
- ColumnWidthChangingEvent.cs
- SiteIdentityPermission.cs
- SecurityPermission.cs
- Pair.cs
- XamlPathDataSerializer.cs
- SQLCharsStorage.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XmlDocumentViewSchema.cs
- XmlSchemaDatatype.cs
- QueryExpr.cs
- CurrentChangingEventArgs.cs
- DataBindingList.cs
- LocationEnvironment.cs
- AspNetSynchronizationContext.cs
- ConsumerConnectionPoint.cs
- TagMapCollection.cs
- HtmlElementErrorEventArgs.cs
- XmlQualifiedNameTest.cs
- PageAsyncTask.cs
- LocalFileSettingsProvider.cs
- OleDbEnumerator.cs
- LoginName.cs
- BitStream.cs
- SiteOfOriginContainer.cs
- ConfigUtil.cs
- DoubleAnimationClockResource.cs
- TypeHelper.cs
- Multiply.cs
- CorrelationActionMessageFilter.cs
- TaskFormBase.cs
- Int32RectConverter.cs
- FormCollection.cs
- ReverseInheritProperty.cs
- VectorCollection.cs
- TagMapCollection.cs