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
- HasCopySemanticsAttribute.cs
- DebugView.cs
- NativeRightsManagementAPIsStructures.cs
- StackOverflowException.cs
- TrackingMemoryStreamFactory.cs
- HyperlinkAutomationPeer.cs
- Soap.cs
- AdapterDictionary.cs
- EventLogTraceListener.cs
- ImageCreator.cs
- UIElementAutomationPeer.cs
- ErrorCodes.cs
- OracleDateTime.cs
- _BasicClient.cs
- JsonQueryStringConverter.cs
- OracleBinary.cs
- ThemeInfoAttribute.cs
- SimpleModelProvider.cs
- CancellationToken.cs
- MobilePage.cs
- AdjustableArrowCap.cs
- ContentElement.cs
- LineServicesRun.cs
- PowerModeChangedEventArgs.cs
- ChoiceConverter.cs
- ColumnResult.cs
- EventLogPermissionEntryCollection.cs
- CompoundFileIOPermission.cs
- XsltArgumentList.cs
- PluralizationService.cs
- pingexception.cs
- PolicyStatement.cs
- ToolstripProfessionalRenderer.cs
- NativeMethods.cs
- ReferencedCategoriesDocument.cs
- EntityDataSourceQueryBuilder.cs
- MembershipSection.cs
- TextTrailingCharacterEllipsis.cs
- ScriptModule.cs
- Utils.cs
- CodeSubDirectoriesCollection.cs
- DataGridTextBoxColumn.cs
- ToolCreatedEventArgs.cs
- Binding.cs
- GlyphRunDrawing.cs
- WebPartUserCapability.cs
- ConfigXmlCDataSection.cs
- TailCallAnalyzer.cs
- DbConnectionInternal.cs
- DesignSurfaceManager.cs
- EntityDataSourceEntitySetNameItem.cs
- PropertyGridView.cs
- RepeatInfo.cs
- AutomationAttributeInfo.cs
- XhtmlConformanceSection.cs
- HttpEncoder.cs
- SqlBulkCopyColumnMappingCollection.cs
- StringDictionary.cs
- GestureRecognitionResult.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CodeCatchClauseCollection.cs
- TimeSpanConverter.cs
- XmlUtil.cs
- XmlChildEnumerator.cs
- PathStreamGeometryContext.cs
- DbReferenceCollection.cs
- AmbientLight.cs
- TextTreeFixupNode.cs
- SmtpLoginAuthenticationModule.cs
- TextBlockAutomationPeer.cs
- GridEntry.cs
- ServiceBehaviorElementCollection.cs
- WebPartExportVerb.cs
- IPEndPoint.cs
- ServicePoint.cs
- Listbox.cs
- XPathNodeList.cs
- bindurihelper.cs
- EventLogPermissionEntry.cs
- WebBrowserContainer.cs
- UIntPtr.cs
- MetadataArtifactLoader.cs
- Content.cs
- PreservationFileWriter.cs
- ObjectIDGenerator.cs
- ToolStripGripRenderEventArgs.cs
- PropertyValueUIItem.cs
- CredentialCache.cs
- ListViewCancelEventArgs.cs
- PolyBezierSegment.cs
- ScrollChrome.cs
- SqlBinder.cs
- StringUtil.cs
- EllipticalNodeOperations.cs
- ServiceDescription.cs
- ITextView.cs
- WebServicesDescriptionAttribute.cs
- ColorContext.cs
- HandleCollector.cs
- TextFormattingConverter.cs