Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FixedSOMTextRun.cs
- MimeTypeMapper.cs
- DataGridViewDataErrorEventArgs.cs
- EventBindingService.cs
- XDRSchema.cs
- ProtocolsConfiguration.cs
- SourceSwitch.cs
- TextRangeEdit.cs
- CharAnimationUsingKeyFrames.cs
- RequestCacheManager.cs
- EDesignUtil.cs
- TextTreeRootTextBlock.cs
- PlainXmlDeserializer.cs
- BindingUtils.cs
- StyleXamlParser.cs
- TreeBuilder.cs
- FileSecurity.cs
- ViewKeyConstraint.cs
- PublishLicense.cs
- nulltextnavigator.cs
- RegexCapture.cs
- Boolean.cs
- TrustLevel.cs
- EventLogPermissionAttribute.cs
- HtmlTextArea.cs
- TraceUtility.cs
- WindowsFormsSectionHandler.cs
- DataObjectFieldAttribute.cs
- TraceHandler.cs
- EdgeProfileValidation.cs
- CryptoStream.cs
- PreloadHost.cs
- VerificationAttribute.cs
- CharacterString.cs
- RowBinding.cs
- DropShadowEffect.cs
- ObjectQueryProvider.cs
- IDReferencePropertyAttribute.cs
- MediaPlayerState.cs
- ImpersonateTokenRef.cs
- ListManagerBindingsCollection.cs
- MapPathBasedVirtualPathProvider.cs
- TextControl.cs
- PackagingUtilities.cs
- DataGrid.cs
- rsa.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- base64Transforms.cs
- PieceDirectory.cs
- DesignTimeVisibleAttribute.cs
- Canonicalizers.cs
- Aggregates.cs
- WhitespaceRuleLookup.cs
- ExpressionPrefixAttribute.cs
- ToolStripTextBox.cs
- ControlFilterExpression.cs
- ProcessModelInfo.cs
- ConnectionInterfaceCollection.cs
- MonthCalendarDesigner.cs
- ScrollViewerAutomationPeer.cs
- XmlIncludeAttribute.cs
- PersistenceTypeAttribute.cs
- ApplicationHost.cs
- WebBrowser.cs
- Camera.cs
- DesignerSerializationVisibilityAttribute.cs
- KeySplineConverter.cs
- EventPrivateKey.cs
- ScriptResourceDefinition.cs
- SystemDiagnosticsSection.cs
- StorageEntityContainerMapping.cs
- RecipientInfo.cs
- SimpleWorkerRequest.cs
- LinkDescriptor.cs
- Pkcs9Attribute.cs
- WebRequest.cs
- PkcsMisc.cs
- RuntimeConfigurationRecord.cs
- Evidence.cs
- ReadOnlyDataSource.cs
- WebBrowser.cs
- MultiSelector.cs
- CellTreeSimplifier.cs
- EntityContainerEntitySetDefiningQuery.cs
- SelectionWordBreaker.cs
- Logging.cs
- COM2PropertyDescriptor.cs
- Nodes.cs
- ClusterSafeNativeMethods.cs
- WebPartMovingEventArgs.cs
- Size.cs
- SerialStream.cs
- X509CertificateValidationMode.cs
- SafePointer.cs
- AxisAngleRotation3D.cs
- InputScopeAttribute.cs
- TransportBindingElement.cs
- InvokeHandlers.cs
- Baml2006Reader.cs
- MultilineStringConverter.cs