Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- FilteredXmlReader.cs
- _TransmitFileOverlappedAsyncResult.cs
- ProgressPage.cs
- Subtree.cs
- Freezable.cs
- BStrWrapper.cs
- UIElementIsland.cs
- PropertyGroupDescription.cs
- Parser.cs
- FileNotFoundException.cs
- TypeExtensionConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- OdbcConnection.cs
- DependencyObject.cs
- RectangleConverter.cs
- ApplicationManager.cs
- PasswordDeriveBytes.cs
- DataReaderContainer.cs
- webproxy.cs
- DataTable.cs
- SiteMapDesignerDataSourceView.cs
- AppDomainProtocolHandler.cs
- DataGridView.cs
- PerformanceCounterPermissionAttribute.cs
- HttpCacheParams.cs
- TripleDES.cs
- WebServiceReceiveDesigner.cs
- ColumnResizeAdorner.cs
- XmlEncodedRawTextWriter.cs
- ComponentChangingEvent.cs
- RewritingSimplifier.cs
- ImageInfo.cs
- SQLMoney.cs
- NonClientArea.cs
- CancelRequestedRecord.cs
- WebService.cs
- Part.cs
- ValidationErrorEventArgs.cs
- Subset.cs
- PrivacyNoticeElement.cs
- FixedDocument.cs
- ContentDisposition.cs
- Logging.cs
- Geometry.cs
- DataBindEngine.cs
- _TransmitFileOverlappedAsyncResult.cs
- SHA512.cs
- DataGridRelationshipRow.cs
- ResourceReferenceKeyNotFoundException.cs
- SiteMapSection.cs
- OdbcUtils.cs
- DecimalConstantAttribute.cs
- AdPostCacheSubstitution.cs
- FileReservationCollection.cs
- CharAnimationBase.cs
- NativeMethods.cs
- PhysicalAddress.cs
- AuthenticatedStream.cs
- ErrorHandler.cs
- RemoteWebConfigurationHost.cs
- Timeline.cs
- XsltException.cs
- metadatamappinghashervisitor.cs
- ObjectItemAttributeAssemblyLoader.cs
- DataBindingsDialog.cs
- ValueQuery.cs
- BoolExpressionVisitors.cs
- DataRelationCollection.cs
- SmiRecordBuffer.cs
- RootNamespaceAttribute.cs
- SiteMapPath.cs
- PeerObject.cs
- MarginsConverter.cs
- GPStream.cs
- DebugTracing.cs
- RotateTransform3D.cs
- typedescriptorpermission.cs
- ConnectionInterfaceCollection.cs
- HtmlButton.cs
- GeneralEndpointIdentity.cs
- RepeaterItemCollection.cs
- SqlConnectionManager.cs
- Crypto.cs
- HttpApplicationStateWrapper.cs
- WindowsToolbar.cs
- OleDbCommand.cs
- CapabilitiesSection.cs
- DocumentAutomationPeer.cs
- InternalException.cs
- FieldAccessException.cs
- CapabilitiesAssignment.cs
- RectangleConverter.cs
- CaseStatementSlot.cs
- DbConvert.cs
- ContentPresenter.cs
- MissingMethodException.cs
- ComplexLine.cs
- XmlSignificantWhitespace.cs
- SoapInteropTypes.cs
- CmsUtils.cs