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
- Misc.cs
- HttpPostedFile.cs
- AuthenticatedStream.cs
- FontStretchConverter.cs
- NamedPermissionSet.cs
- WebPartCancelEventArgs.cs
- WebPartDisplayModeCollection.cs
- ResourcePool.cs
- SByte.cs
- AuthenticationModuleElementCollection.cs
- Convert.cs
- TextSimpleMarkerProperties.cs
- LoadRetryConstantStrategy.cs
- ServiceReflector.cs
- StringFormat.cs
- Freezable.cs
- XmlSchemaExporter.cs
- ThreadStartException.cs
- Transactions.cs
- GlobalProxySelection.cs
- DesignerInterfaces.cs
- XPathMultyIterator.cs
- CheckBoxFlatAdapter.cs
- WebConvert.cs
- CompiledRegexRunner.cs
- PropertyEntry.cs
- LambdaCompiler.cs
- PasswordDeriveBytes.cs
- MemberDescriptor.cs
- XPathAxisIterator.cs
- MetadataWorkspace.cs
- PortCache.cs
- XsdSchemaFileEditor.cs
- TimeSpanStorage.cs
- ApplicationCommands.cs
- Rijndael.cs
- List.cs
- ClientSideProviderDescription.cs
- ADMembershipUser.cs
- DoubleAnimationUsingKeyFrames.cs
- AmbientEnvironment.cs
- HandlerMappingMemo.cs
- AccessDataSource.cs
- DataControlImageButton.cs
- DrawToolTipEventArgs.cs
- WpfSharedBamlSchemaContext.cs
- ArrayMergeHelper.cs
- CompiledRegexRunnerFactory.cs
- IsolatedStorage.cs
- GenerateTemporaryAssemblyTask.cs
- ParserStack.cs
- ArgumentsParser.cs
- AppDomain.cs
- ADMembershipUser.cs
- FlowDocumentReader.cs
- VectorValueSerializer.cs
- CompositeDuplexElement.cs
- PathFigureCollection.cs
- AttributeUsageAttribute.cs
- XPathParser.cs
- ProviderSettingsCollection.cs
- formatter.cs
- XmlEncoding.cs
- HttpHandlersSection.cs
- WindowsHyperlink.cs
- WindowsListViewScroll.cs
- PrePrepareMethodAttribute.cs
- ColorTranslator.cs
- StyleBamlRecordReader.cs
- KeyConstraint.cs
- PropertySegmentSerializationProvider.cs
- DecimalKeyFrameCollection.cs
- SymDocumentType.cs
- PenThreadPool.cs
- StatusBarItem.cs
- TemplateControlParser.cs
- SkewTransform.cs
- DispatcherObject.cs
- odbcmetadatafactory.cs
- DataServiceClientException.cs
- CompModSwitches.cs
- PageParser.cs
- Trigger.cs
- TemplateComponentConnector.cs
- Transform.cs
- ReadonlyMessageFilter.cs
- ExitEventArgs.cs
- DbException.cs
- MatrixConverter.cs
- FormViewDeletedEventArgs.cs
- FixedTextView.cs
- WindowsStatic.cs
- RuleInfoComparer.cs
- JsonReaderWriterFactory.cs
- _SSPIWrapper.cs
- ObjectViewListener.cs
- JoinTreeSlot.cs
- DataGridViewCellCancelEventArgs.cs
- KnownColorTable.cs
- QueuePathDialog.cs